language: ruby
rvm:
  - 2.1.10
  - 2.2.9
  - 2.3.6
  - 2.4.3
  - 2.5.0
env:
- COVERALLS_SILENT=true
install:
  - "gem install bundler"
  - "bundle install --jobs=3 --retry=3"
  - "mkdir -p test/dummy/tmp/cache"
  - "mkdir -p test/dummy/tmp/non_default_location"
gemfile:
  - gemfiles/rails4_0.gemfile
  - gemfiles/rails4_1.gemfile
  - gemfiles/rails4_2.gemfile
  - gemfiles/rails5_0.gemfile
  - gemfiles/rails5_1.gemfile
matrix:
  exclude:
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_0.gemfile
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_1.gemfile
    # rails <=4.1 segfaults with ruby 2.4+
    - rvm: 2.4.3
      gemfile: gemfiles/rails4_0.gemfile
    - rvm: 2.4.3
      gemfile: gemfiles/rails4_1.gemfile
    - rvm: 2.5.0
      gemfile: gemfiles/rails4_0.gemfile
    - rvm: 2.5.0
      gemfile: gemfiles/rails4_1.gemfile

language: ruby
rvm:
  - 2.1.10
  - 2.2.9
  - 2.3.6
  - 2.4.3
  - 2.5.0
env:
- COVERALLS_SILENT=true
install:
  - "gem install bundler"
  - "bundle install --jobs=3 --retry=3"
  - "mkdir -p test/dummy/tmp/cache"
  - "mkdir -p test/dummy/tmp/non_default_location"
gemfile:
  - gemfiles/rails4_0.gemfile
  - gemfiles/rails4_1.gemfile
  - gemfiles/rails4_2.gemfile
  - gemfiles/rails5_0.gemfile
  - gemfiles/rails5_1.gemfile
  - gemfiles/rails5_2.gemfile
matrix:
  exclude:
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_0.gemfile
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_1.gemfile
    - rvm: 2.1.10
      gemfile: gemfiles/rails5_2.gemfile
    # rails <=4.1 segfaults with ruby 2.4+
    - rvm: 2.4.3
      gemfile: gemfiles/rails4_0.gemfile
    - rvm: 2.4.3
      gemfile: gemfiles/rails4_1.gemfile
    - rvm: 2.5.0
      gemfile: gemfiles/rails4_0.gemfile
    - rvm: 2.5.0
      gemfile: gemfiles/rails4_1.gemfile

Test with Rails 5.2 in CI
Test with Rails 5.2 in CI
