language: ruby

sudo: false

bundler_args: --without development

rvm:
  - 2.2.2
  - 2.3.1
  - jruby-9.1.5.0

matrix:
  allow_failures:
    - gemfile: gemfiles/rails_master.gemfile
  exclude:
    - rvm: jruby-9.1.5.0
      gemfile: gemfiles/driver_master.gemfile

gemfile:
  - Gemfile
  - gemfiles/rails_master.gemfile
  - gemfiles/driver_master.gemfile

env:
  global:
    - CI="travis"
    - JRUBY_OPTS="--server -J-Xms512m -J-Xmx1G"
  matrix:
    - MONGODB=2.4.14
    - MONGODB=2.6.12
    - MONGODB=3.0.12
    - MONGODB=3.2.7

before_script:
  - wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz -O /tmp/mongodb.tgz
  - tar -xvf /tmp/mongodb.tgz
  - mkdir /tmp/data
  - ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath /tmp/data --bind_ip 127.0.0.1 --auth &> /dev/null &

notifications:
  email: false
  irc:
    on_success: change
    on_failure: always
    channels:
      - "irc.freenode.org#mongoid"

language: ruby

sudo: false

bundler_args: --without development

rvm:
  - 2.2
  - 2.3
  - jruby-9.1.6.0

matrix:
  allow_failures:
    - gemfile: gemfiles/rails_master.gemfile
  exclude:
    - rvm: jruby-9.1.5.0
      gemfile: gemfiles/driver_master.gemfile

gemfile:
  - Gemfile
  - gemfiles/rails_master.gemfile
  - gemfiles/driver_master.gemfile

env:
  global:
    - CI="travis"
    - JRUBY_OPTS="--server -J-Xms512m -J-Xmx1G"
  matrix:
    - MONGODB=2.4.14
    - MONGODB=2.6.12
    - MONGODB=3.0.12
    - MONGODB=3.2.7

before_script:
  - wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz -O /tmp/mongodb.tgz
  - tar -xvf /tmp/mongodb.tgz
  - mkdir /tmp/data
  - ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath /tmp/data --bind_ip 127.0.0.1 --auth &> /dev/null &

notifications:
  email: false
  irc:
    on_success: change
    on_failure: always
    channels:
      - "irc.freenode.org#mongoid"

Use latest mri 2.2 and 2.3 and jruby-9.1.6.0
Use latest mri 2.2 and 2.3 and jruby-9.1.6.0
