language: ruby
rvm:
  - 2.3.0
addons:
  postgresql: "9.3"

before_script:
  - git clone https://github.com/mezuro/kalibro_install.git -b v4.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 config/database.yml.sample config/database.yml
  - bundle exec rake db:setup
  - cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml
  - export BUNDLE_GEMFILE=$PWD/Gemfile
  - export CODECLIMATE_REPO_TOKEN=045c2433d496f108c0c6afa5516a72ddbfb1868fb34bf7a9bd095b7a0ea34a79

script:
  - bundle exec rake spec
  - bundle exec rake konacha:run
  - bundle exec rake cucumber

notifications:
  email:
    recipients:
      - mezuro-core@lists.ime.usp.br
    on_success: change
    on_failure: always

language: ruby
rvm:
  - 2.3.0
addons:
  postgresql: "9.3"

before_script:
  - git clone https://github.com/mezuro/kalibro_install.git -b v4.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
  #
  # In 2016/04/27 the state is:
  #   * The first issue has been closed and apparently fixed by a PR
  #   * The second one has been closed without a PR and removing the workaround below breaks the build
  #
  - sudo apt-get remove libzmq3
  - bash install.sh
  - popd
  - cp config/database.yml.sample config/database.yml
  - bundle exec rake db:setup
  - cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml
  - export BUNDLE_GEMFILE=$PWD/Gemfile
  - export CODECLIMATE_REPO_TOKEN=045c2433d496f108c0c6afa5516a72ddbfb1868fb34bf7a9bd095b7a0ea34a79

script:
  - bundle exec rake spec
  - bundle exec rake konacha:run
  - bundle exec rake cucumber

notifications:
  email:
    recipients:
      - mezuro-core@lists.ime.usp.br
    on_success: change
    on_failure: always

Add updated info on Travis libzmq workaround
Add updated info on Travis libzmq workaround

This is a workaround long ago but still necessary. Some status
information has been added.
