.travis.yml 1.16 KB
language: ruby
rvm:
  - 2.1.2

before_script:
  - "cp config/database.yml.sample config/database.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
  - git clone https://github.com/mezuro/kalibro_gatekeeper.git -b master kalibro_gatekeeper
  - pushd kalibro_gatekeeper
  - cp config/database.yml.sample config/database.yml
  - export BUNDLE_GEMFILE=$PWD/Gemfile
  - bundle install
  - bundle exec rails s -p 8081 -d
  - popd
  - 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