language: ruby
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - ruby-head
gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
allow_failures:
  - ruby: ruby-head
    gemfile: gemfiles/rails_4.2.gemfile
script:
  - bundle exec rake rubocop
  - bundle exec rspec

language: ruby
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - ruby-head
gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
matrix:
  allow_failures:
    - rvm: ruby-head
      gemfile: gemfiles/rails_4.2.gemfile
script:
  - bundle exec rake rubocop
  - bundle exec rspec

Exclude testing Rails 4.2 against ruby-head
Exclude testing Rails 4.2 against ruby-head
