language: ruby
rvm:
  - 2.1.10
  - 2.2.10
  - 2.3.5
  - 2.4.5
  - 2.5.3
  - 2.6.3
  - 3.0.0
  - jruby-9.1.15.0
gemfile:
  - gemfiles/rails1-4.gemfile
  - gemfiles/rails5.gemfile
matrix:
  exclude:
    - gemfile: gemfiles/rails5.gemfile
      rvm: 2.1.10
    - gemfile: gemfiles/rails5.gemfile
      rvm: jruby-9.1.6.0
    - gemfile: gemfiles/rails1-4.gemfile
      rvm: 2.5.3
    - gemfile: gemfiles/rails1-4.gemfile
      rvm: 2.6.3
  allow_failures:
    - rvm: 2.1.10

before_install:
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
  - export BUNDLE_PATH="${TRAVIS_BUILD_DIR}/vendor/bundle"

language: ruby
rvm:
  - 2.1.10
  - 2.2.10
  - 2.3.5
  - 2.4.5
  - 2.5.3
  - 2.6.3
  - 3.0.0
  - jruby-9.1.15.0
gemfile:
  - gemfiles/rails1-4.gemfile
  - gemfiles/rails5.gemfile
matrix:
  exclude:
    - gemfile: gemfiles/rails5.gemfile
      rvm: 2.1.10
    - gemfile: gemfiles/rails5.gemfile
      rvm: jruby-9.1.6.0
    - gemfile: gemfiles/rails1-4.gemfile
      rvm: 2.5.3
    - gemfile: gemfiles/rails1-4.gemfile
      rvm: 2.6.3
     - gemfile: gemfiles/rails1-4.gemfile
      rvm: 3.0.0
  allow_failures:
    - rvm: 2.1.10

before_install:
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
  - export BUNDLE_PATH="${TRAVIS_BUILD_DIR}/vendor/bundle"

Exclude ruby 3 with old rails
Exclude ruby 3 with old rails
