.travis.yml
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: ruby
rvm:
- 2.1.3
before_script:
- "cp config/database.yml.sample config/database.yml"
- "cp config/kalibro_processor.yml.sample config/kalibro_processor.yml"
- "bundle exec rake db:migrate RAILS_ENV=test"
- git clone https://gist.github.com/0c4ad3b5700c6364abf1.git -b v1.0 kalibro_install
- pushd kalibro_install
# Remove bugged libzmq3 package, see https://github.com/travis-ci/travis-ci/issues/982 and https://github.com/travis-ci/travis-ci/issues/1715 for details
- sudo apt-get remove libzmq3
- bash install.sh
- popd
- cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml
# Gatekeeper
- git clone https://github.com/mezuro/kalibro_gatekeeper.git -b v0.2.0 kalibro_gatekeeper
- cd kalibro_gatekeeper
- cp config/database.yml.sample config/database.yml
- cp config/kalibro_processor.yml.sample config/kalibro_processor.yml
- export BUNDLE_GEMFILE=$PWD/Gemfile
- bundle install
- RAILS_ENV=local bundle exec rails s -p 8081 -d
- cd ..
- export BUNDLE_GEMFILE=$PWD/Gemfile
# Processor
- git clone https://github.com/mezuro/kalibro_processor.git -b v0.2.1 kalibro_processor
- cd kalibro_processor
- psql -c "create role kalibro_processor with createdb login password 'kalibro_processor'" -U postgres
- cp config/database.yml.postgresql_sample config/database.yml
- cp config/repositories.yml.sample config/repositories.yml
- export BUNDLE_GEMFILE=$PWD/Gemfile
- bundle install
- bundle exec rake db:setup db:migrate
- bundle exec rails s -p 8082 -d
- bundle exec bin/delayed_job start
- cd ..
- export BUNDLE_GEMFILE=$PWD/Gemfile
script:
- sudo service tomcat6 stop
- bundle exec rake spec
- bundle exec rake konacha:run
- sudo service tomcat6 start
- bundle exec rake cucumber
notifications:
email:
recipients:
- mezuro-core@lists.ime.usp.br
on_success: change
on_failure: always