language: ruby
env:
  - ARUBA_TIMEOUT=240
before_install:
  - gem update --system
  - gem update bundler
  - gem cleanup bundler
cache: bundler
rvm:
  - 2.1
  - 2.2
  - 2.3
  - 2.4
  - 2.5
branches:
  only:
    - master
install:
  - "bundle install --retry 3 --jobs 8"
gemfile:
  - gemfiles/rails3.2.gemfile
  - gemfiles/rails4.1.gemfile
  - gemfiles/rails4.2.gemfile
  - gemfiles/rails5.0.gemfile
matrix:
  fast_finish: true
  allow_failures:
    - rvm: 2.1
      gemfile: gemfiles/rails5.0.gemfile
    # Ruby 2.4+ doesn't work with ActiveSupport 4.1
    # https://github.com/rails/rails/pull/25161
    # https://github.com/rails/rails/pull/25737
    - rvm: 2.4
      gemfile: gemfiles/rails4.1.gemfile
    - rvm: 2.5
      gemfile: gemfiles/rails4.1.gemfile

language: ruby
env:
  - ARUBA_TIMEOUT=240
before_install:
  - gem update --system
  - gem update bundler
  - gem cleanup bundler
cache: bundler
rvm:
  - 2.1
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - ruby-head
branches:
  only:
    - master
install:
  - "bundle install --retry 3 --jobs 8"
gemfile:
  - gemfiles/rails3.2.gemfile
  - gemfiles/rails4.1.gemfile
  - gemfiles/rails4.2.gemfile
  - gemfiles/rails5.0.gemfile
matrix:
  fast_finish: true
  allow_failures:
    - rvm: ruby-head
    - rvm: 2.1
      gemfile: gemfiles/rails5.0.gemfile
    # Ruby 2.4+ doesn't work with ActiveSupport 4.1
    # https://github.com/rails/rails/pull/25161
    # https://github.com/rails/rails/pull/25737
    - rvm: 2.4
      gemfile: gemfiles/rails4.1.gemfile
    - rvm: 2.5
      gemfile: gemfiles/rails4.1.gemfile

Test with ruby-head on Travis
Test with ruby-head on Travis
