---
language: ruby
before_install:
  - "travis_retry gem install bundler || travis_retry gem install bundler -v 1.17.3"
  - "rm -f ${BUNDLE_GEMFILE}.lock"
before_script:
  - bundle update
cache: bundler
rvm:
  - 2.6.8
  - 2.7.4
  - ruby-head
  - rbx-2
  - jruby
gemfile:
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
  - gemfiles/rails_6.0.gemfile
  - gemfiles/rails_6.1.gemfile
matrix:
  allow_failures:
    - rvm: rbx-2
    - rvm: jruby
    - rvm: ruby-head
  fast_finish: true

---
language: ruby
before_install:
  - "travis_retry gem install bundler || travis_retry gem install bundler -v 1.17.3"
  - "rm -f ${BUNDLE_GEMFILE}.lock"
before_script:
  - bundle update
cache: bundler
rvm:
  - 2.6.8
  - 2.7.4
  - 3.0.2
  - ruby-head
  - rbx-2
  - jruby
gemfile:
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
  - gemfiles/rails_6.0.gemfile
  - gemfiles/rails_6.1.gemfile
matrix:
  allow_failures:
    - rvm: rbx-2
    - rvm: jruby
    - rvm: ruby-head
  fast_finish: true
jobs:
  exclude:
    - rvm: 3.0.2
      gemfile: gemfiles/rails_5.0.gemfile
    - rvm: 3.0.2
      gemfile: gemfiles/rails_5.1.gemfile
    - rvm: 3.0.2
      gemfile: gemfiles/rails_5.2.gemfile
    - rvm: ruby-head
      gemfile: gemfiles/rails_5.0.gemfile
    - rvm: ruby-head
      gemfile: gemfiles/rails_5.1.gemfile
    - rvm: ruby-head
      gemfile: gemfiles/rails_5.2.gemfile

Test with Ruby 3 and exclude matrix versions that don't coexist
Test with Ruby 3 and exclude matrix versions that don't coexist
