Commit 09a015d7f58a9dcb64b37dcac9ca1c8ca4037891

Authored by Diego Camarinha
Committed by Rafael Manzo
1 parent 2f7d4bb0

Updating travis script.

Showing 1 changed file with 6 additions and 26 deletions   Show diff stats
.travis.yml
... ... @@ -3,38 +3,18 @@ rvm:
3 3 - 2.1.5
4 4  
5 5 before_script:
6   - - "cp config/database.yml.sample config/database.yml"
7   - - "cp config/kalibro_processor.yml.sample config/kalibro_processor.yml"
8   - - "bundle exec rake db:migrate RAILS_ENV=test"
  6 + - git clone https://gist.github.com/6179925.git -b v2.0 kalibro_install
  7 + - pushd kalibro_install
  8 + # 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
  9 + - sudo apt-get remove libzmq3
  10 + - bash install.sh
  11 + - popd
9 12 - cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml
10   - # Configurations
11   - - git clone https://github.com/mezuro/kalibro_configurations.git -b integrating_with_prezento kalibro_configurations
12   - - cd kalibro_configurations
13   - - cp config/database.yml.sample config/database.yml
14   - - export BUNDLE_GEMFILE=$PWD/Gemfile
15   - - bundle install
16   - - RAILS_ENV=local bundle exec rails s -p 8083 -d
17   - - cd ..
18   - - export BUNDLE_GEMFILE=$PWD/Gemfile
19   - # Processor
20   - - git clone https://github.com/mezuro/kalibro_processor.git -b v0.2.1 kalibro_processor
21   - - cd kalibro_processor
22   - - psql -c "create role kalibro_processor with createdb login password 'kalibro_processor'" -U postgres
23   - - cp config/database.yml.postgresql_sample config/database.yml
24   - - cp config/repositories.yml.sample config/repositories.yml
25   - - export BUNDLE_GEMFILE=$PWD/Gemfile
26   - - bundle install
27   - - bundle exec rake db:setup db:migrate
28   - - bundle exec rails s -p 8082 -d
29   - - bundle exec bin/delayed_job start
30   - - cd ..
31 13 - export BUNDLE_GEMFILE=$PWD/Gemfile
32 14  
33 15 script:
34   - - sudo service tomcat6 stop
35 16 - bundle exec rake spec
36 17 - bundle exec rake konacha:run
37   - - sudo service tomcat6 start
38 18 - bundle exec rake cucumber
39 19  
40 20 notifications:
... ...