before_install: gem install bundler -v 1.14.3
cache: bundler
gemfile:
  - gemfiles/rails3.2.gemfile
  - gemfiles/rails4.x.gemfile
  - gemfiles/rails5.x.gemfile
  - gemfiles/sinatra1.x.gemfile
language: ruby
matrix:
  allow_failures:
    # json 1.8.3 fails to build under 2.4.0
    - rvm: 2.4.0
      gemfile: gemfiles/rails3.2.gemfile
    - rvm: 2.4.0
      gemfile: gemfiles/rails4.x.gemfile
    - rvm: 2.4.0
      gemfile: gemfiles/sinatra1.x.gemfile
  exclude:
    # rails 5 requires Ruby 2.2.2+
    - rvm: 2.1.10
      gemfile: gemfiles/rails5.x.gemfile
  fast_finish: true
notifications:
  email: false
rvm:
  - 2.1.10
  - 2.2.6
  - 2.3.3
  - 2.4.0
sudo: false

before_install: gem install bundler -v 1.14.3
cache: bundler
gemfile:
  - gemfiles/rails3.2.gemfile
  - gemfiles/rails4.x.gemfile
  - gemfiles/rails5.x.gemfile
  - gemfiles/sinatra1.x.gemfile
language: ruby
matrix:
  allow_failures:
    # json 1.8.3 fails to build under 2.4.0
    - rvm: 2.4.0
      gemfile: gemfiles/rails3.2.gemfile
    - rvm: 2.4.0
      gemfile: gemfiles/rails4.x.gemfile
    - rvm: 2.4.0
      gemfile: gemfiles/sinatra1.x.gemfile
  exclude:
    # rails 5 requires Ruby 2.2.2+
    - rvm: 2.1.10
      gemfile: gemfiles/rails5.x.gemfile
  fast_finish: true
notifications:
  email: false
rvm:
  - 2.2.6
  - 2.3.3
  - 2.4.0
sudo: false

Remove Ruby 2.1 from testing.
Remove Ruby 2.1 from testing.

Ruby 2.1 is no longer officially maintained.