Merge pull request #189 from abf/rosa-build:188-use-travis
#188: Use travis-ci.org
This commit is contained in:
commit
ecc4407f9a
|
@ -0,0 +1,24 @@
|
||||||
|
language: ruby
|
||||||
|
rvm:
|
||||||
|
- 1.9.3
|
||||||
|
bundler_args: --without development
|
||||||
|
env:
|
||||||
|
- SPEC_GROUP=controllers
|
||||||
|
- SPEC_GROUP=api
|
||||||
|
- SPEC_GROUP=models
|
||||||
|
- SPEC_GROUP=others
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update
|
||||||
|
- sudo apt-get --no-install-recommends install bash curl git patch bzip2 build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev libicu-dev
|
||||||
|
- gem update --system
|
||||||
|
- gem --version
|
||||||
|
- git config --global user.email "abf@travis.com"
|
||||||
|
- git config --global user.name "ABF"
|
||||||
|
before_script:
|
||||||
|
- cp config/database.yml.sample config/database.yml
|
||||||
|
- cp config/application.yml.travis config/application.yml
|
||||||
|
- bundle exec rake db:create db:structure:load db:migrate
|
||||||
|
script: "./travis.sh"
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- /.*/
|
1
Gemfile
1
Gemfile
|
@ -95,4 +95,5 @@ group :test do
|
||||||
gem 'rr', '~> 1.0.4'
|
gem 'rr', '~> 1.0.4'
|
||||||
gem 'shoulda'
|
gem 'shoulda'
|
||||||
gem 'mock_redis', '0.6.2'
|
gem 'mock_redis', '0.6.2'
|
||||||
|
gem 'rake'
|
||||||
end
|
end
|
||||||
|
|
|
@ -449,6 +449,7 @@ DEPENDENCIES
|
||||||
rails-backbone (~> 0.7.2)
|
rails-backbone (~> 0.7.2)
|
||||||
rails3-generators
|
rails3-generators
|
||||||
rails3-jquery-autocomplete (~> 1.0.7)
|
rails3-jquery-autocomplete (~> 1.0.7)
|
||||||
|
rake
|
||||||
rdiscount
|
rdiscount
|
||||||
redcarpet (~> 2.2.2)
|
redcarpet (~> 2.2.2)
|
||||||
redhillonrails_core!
|
redhillonrails_core!
|
||||||
|
|
|
@ -6,6 +6,8 @@ A distributed environment to build distributions, supporting all steps from mana
|
||||||
|
|
||||||
**Note: This Documentation is in a beta state. Breaking changes may occur.**
|
**Note: This Documentation is in a beta state. Breaking changes may occur.**
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/rosa-abf/rosa-build.png?branch=master)](https://travis-ci.org/rosa-abf/rosa-build)
|
||||||
|
|
||||||
* [API](http://abf-doc.rosalinux.ru/abf/api/)
|
* [API](http://abf-doc.rosalinux.ru/abf/api/)
|
||||||
* [Integration with FileStore (.abf.yml)](http://abf-doc.rosalinux.ru/abf/file_store_integration/)
|
* [Integration with FileStore (.abf.yml)](http://abf-doc.rosalinux.ru/abf/file_store_integration/)
|
||||||
* [ISO build environment](http://abf-doc.rosalinux.ru/abf/iso_build/)
|
* [ISO build environment](http://abf-doc.rosalinux.ru/abf/iso_build/)
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
common: &common
|
||||||
|
project_name: ABF
|
||||||
|
repo_project_name: ABF
|
||||||
|
anonymous_access: true
|
||||||
|
preregistration: false
|
||||||
|
file_store_url: 'http://file-store.rosalinux.ru'
|
||||||
|
distr_types: ['mdv', 'rhel', 'nau5']
|
||||||
|
abf_worker:
|
||||||
|
publish_workers_count: 2
|
||||||
|
keys:
|
||||||
|
key_pair_secret_key: 'key_pair_secret_key'
|
||||||
|
airbrake_api_key: 'airbrake_api_key'
|
||||||
|
devise_pepper: 'e295a79fb7966e94a6e8b184ba65791a'
|
||||||
|
secret_token: 'e295a79fb7966e94a6e8b184ba65791a'
|
||||||
|
github:
|
||||||
|
id: 'APP_ID'
|
||||||
|
secret: 'APP_SECRET'
|
||||||
|
google:
|
||||||
|
id: 'APP_ID'
|
||||||
|
secret: 'APP_SECRET'
|
||||||
|
facebook:
|
||||||
|
id: 'APP_ID'
|
||||||
|
secret: 'APP_SECRET'
|
||||||
|
downloads_url: 'http://abf-downloads.rosalinux.ru'
|
||||||
|
wiki_formats:
|
||||||
|
markdown: "Markdown"
|
||||||
|
textile: "Textile"
|
||||||
|
# rdoc: "RDoc"
|
||||||
|
org: "Org-mode"
|
||||||
|
# creole: "Creole"
|
||||||
|
# mediawiki: "MediaWiki"
|
||||||
|
feedback:
|
||||||
|
email:
|
||||||
|
- 'test@example.com'
|
||||||
|
- 'test1@example.com'
|
||||||
|
# or
|
||||||
|
# email: 'test@example.com'
|
||||||
|
|
||||||
|
# optional parameters
|
||||||
|
cc:
|
||||||
|
- 'test2@example.com' # or like email
|
||||||
|
bcc:
|
||||||
|
- 'test3@example.com' # or like email
|
||||||
|
subject_prefixes: # or one line
|
||||||
|
- 'from_feedback'
|
||||||
|
subject_postfixes: # or one line
|
||||||
|
- 'sample_postfix'
|
||||||
|
shell_user: 'git'
|
||||||
|
|
||||||
|
test:
|
||||||
|
<<: *common
|
||||||
|
root_path: /home/travis/build/rosa-abf/rosa-build/tmp/test_root
|
||||||
|
git_path: /home/travis/build/rosa-abf/rosa-build/tmp/test_root
|
||||||
|
do-not-reply-email: do-not-reply@localhost
|
|
@ -6,3 +6,10 @@ production:
|
||||||
pool: 5
|
pool: 5
|
||||||
username: rosa
|
username: rosa
|
||||||
password: rosa
|
password: rosa
|
||||||
|
|
||||||
|
test:
|
||||||
|
adapter: postgresql
|
||||||
|
encoding: unicode
|
||||||
|
template: template0
|
||||||
|
database: rosa_build_test
|
||||||
|
username: postgres
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
rspec="bundle exec rspec"
|
||||||
|
|
||||||
|
if [ $SPEC_GROUP = 'controllers' ]
|
||||||
|
then
|
||||||
|
$rspec spec/controllers/*_spec.rb spec/controllers/admin/ spec/controllers/groups/ spec/controllers/platforms/ spec/controllers/projects/ spec/controllers/users/
|
||||||
|
elif [ $SPEC_GROUP = 'api' ]
|
||||||
|
then
|
||||||
|
$rspec spec/controllers/api/
|
||||||
|
elif [ $SPEC_GROUP = 'models' ]
|
||||||
|
then
|
||||||
|
$rspec spec/models/
|
||||||
|
elif [ $SPEC_GROUP = 'others' ]
|
||||||
|
then
|
||||||
|
$rspec spec/helpers/ spec/integration/ spec/lib/ spec/mailers/ spec/mailers/ spec/routing/
|
||||||
|
fi
|
Loading…
Reference in New Issue