language: ruby

before_install:
  - gem update --system
  - gem install bundler

rvm:
  - 2.4.5

gemfile:
  - gemfiles/rails-4.2.gemfile
  - gemfiles/rails-5.0.gemfile
  - gemfiles/rails-5.1.gemfile
  - gemfiles/rails-5.2.gemfile

language: ruby

before_install:
  - gem update --system
  - gem install bundler

rvm:
  - 2.4.5

gemfile:
  - gemfiles/rails-4.2.gemfile
  - gemfiles/rails-5.0.gemfile
  - gemfiles/rails-5.1.gemfile
  - gemfiles/rails-5.2.gemfile

matrix:
  exclude:
    gemfile: gemfiles/rails-4.2.gemfile

  include:
    gemfile: gemfiles/rails-4.2.gemfile
    before_install:
      - gem install bundler -v '< 2'

Add Travis exception for Rails 4.2
Add Travis exception for Rails 4.2
