---
language: ruby

gemfile:
  - gemfiles/rails_5.gemfile
  - gemfiles/rails_6.gemfile
  - gemfiles/rails_master.gemfile

rvm:
  - 2.4
  - 2.5
  - 2.6

matrix:
  fast_finish: true
  exclude:
    - rvm: 2.4
      gemfile: gemfiles/rails_master.gemfile
    - rvm: 2.4
      gemfile: gemfiles/rails_6.gemfile
  allow_failures:
    - gemfile: gemfiles/rails_master.gemfile

sudo: false

cache: bundler

install: bundle install --without development --retry=3 --jobs=3

script:
  - bundle exec rubocop
  - bundle exec rspec

---
language: ruby

gemfile:
  - gemfiles/rails_5.gemfile
  - gemfiles/rails_6.gemfile
  - gemfiles/rails_master.gemfile

rvm:
  - 2.4
  - 2.5
  - 2.6
  - 2.7

matrix:
  fast_finish: true
  exclude:
    - rvm: 2.4
      gemfile: gemfiles/rails_master.gemfile
    - rvm: 2.4
      gemfile: gemfiles/rails_6.gemfile
  allow_failures:
    - gemfile: gemfiles/rails_master.gemfile

sudo: false

cache: bundler

install: bundle install --without development --retry=3 --jobs=3

script:
  - bundle exec rubocop
  - bundle exec rspec

Test gem against Ruby 2.7.
Test gem against Ruby 2.7.
