From 09a015d7f58a9dcb64b37dcac9ca1c8ca4037891 Mon Sep 17 00:00:00 2001 From: Diego Araújo Date: Wed, 11 Feb 2015 16:55:31 -0200 Subject: [PATCH] Updating travis script. --- .travis.yml | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/.travis.yml b/.travis.yml index dde1b3e..20a8d40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,38 +3,18 @@ rvm: - 2.1.5 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/6179925.git -b v2.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 - # Configurations - - git clone https://github.com/mezuro/kalibro_configurations.git -b integrating_with_prezento kalibro_configurations - - cd kalibro_configurations - - cp config/database.yml.sample config/database.yml - - export BUNDLE_GEMFILE=$PWD/Gemfile - - bundle install - - RAILS_ENV=local bundle exec rails s -p 8083 -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: -- libgit2 0.21.2