before_install:
  - wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
  - tar xvf zeromq-4.2.1.tar.gz
  - cd zeromq-4.2.1
  - ./configure
  - make -j4
  - sudo make install
  # Retrun to project directory
  - cd ..
  - sudo -E ./install-protobuf.sh
  - java -Xmx1g -version
  - javac -J-Xmx1g -version
  - export JRUBY_OPTS=-J-Xmx1g
  - gem update bundler
language: ruby
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - jruby-9.1.17.0
  - jruby-9.2.5.0
  - rbx-2
env:
  - PROTOBUF_VERSION=2.6.1
  - PROTOBUF_VERSION=3.0.0-alpha-2
matrix:
  allow_failures:
    - rvm: rbx-2
    - env: PROTOBUF_VERSION=3.0.0-alpha-2
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/51a956bcd2b1854d6756
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: false     # default: false
