language: ruby
rvm:
  - 2.1.1

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 v0.1 kalibro_install
  - pushd kalibro_install
  - 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

language: ruby
rvm:
  - 2.1.1

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 v0.1 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

Remove libzmq3 package installed by default on Travis
Remove libzmq3 package installed by default on Travis

This package is bugged, it conflicts with libzmq that is a dependency
off libzeromq-perl (that itself is a dependency of Analizo).

signed-off-by: Daniel Miranda <30157ad3f36efbd4c43c24249f65b841e896d378@gmail.com>
