language: ruby
bundler_args: --without development

gemfile:
  - gemfiles/rails4_2.gemfile
  - gemfiles/rails5_0.gemfile
  - gemfiles/mm_rails4_2.gemfile

rvm:
  - 2.1.10
  - 2.2.6
  - 2.3.3
  - 2.4.0
  - jruby-9.1.7.0

matrix:
  exclude:
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_0.gemfile
    - rvm: jruby-9.1.7.0
      gemfile: gemfiles/rails5_0.gemfile
    - rvm: 2.4.0
      gemfile: gemfiles/rails4_2.gemfile
    - rvm: 2.4.0
      gemfile: gemfiles/mm_rails4_2.gemfile

services:
  - mongodb

# Gitter integration
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/4d6749e48eb60321640e
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: never     # options: [always|never|change] default: always

language: ruby
bundler_args: --without development

gemfile:
  - gemfiles/rails4_2.gemfile
  - gemfiles/rails5_0.gemfile
  - gemfiles/rails5_1.gemfile
  - gemfiles/mm_rails4_2.gemfile

rvm:
  - 2.1.10
  - 2.2.7
  - 2.3.4
  - 2.4.1
  - jruby-9.1.8.0

jdk:
  - oraclejdk8

matrix:
  exclude:
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_0.gemfile
    - rvm: jruby-9.1.8.0
      gemfile: gemfiles/rails5_0.gemfile
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_1.gemfile
    - rvm: jruby-9.1.8.0
      gemfile: gemfiles/rails5_1.gemfile
    - rvm: 2.4.1
      gemfile: gemfiles/rails4_2.gemfile
    - rvm: 2.4.1
      gemfile: gemfiles/mm_rails4_2.gemfile

services:
  - mongodb

# Gitter integration
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/4d6749e48eb60321640e
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: never     # options: [always|never|change] default: always

Add Ruby 2.4.1 to Travis tests
Add Ruby 2.4.1 to Travis tests
