language: ruby
cache: bundler
rvm:
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - 2.6
  - 2.7
env:
  matrix:
    - RAILS_VERSION='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
    - RAILS_VERSION='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
    - RAILS_VERSION='~> 5.1.0'
    - RAILS_VERSION='~> 5.2.0'
    - RAILS_VERSION='~> 6.0.0'

matrix:
  exclude:
    - rvm: 2.2
      env: RAILS_VERSION='~> 6.0.0'
    - rvm: 2.3
      env: RAILS_VERSION='~> 6.0.0'
    - rvm: 2.4
      env: RAILS_VERSION='~> 6.0.0'
    # Rails 4.2 uses BigDecimal.new, which Ruby 2.7 removed
    - rvm: 2.7
      env: RAILS_VERSION='~> 4.2.0'

language: ruby
cache: bundler
rvm:
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - 2.6
  - 2.7
env:
  matrix:
    - RAILS_VERSION='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'
    - RAILS_VERSION='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
    - RAILS_VERSION='~> 5.1.0'
    - RAILS_VERSION='~> 5.2.0'
    - RAILS_VERSION='~> 6.0.0'

matrix:
  exclude:
    - rvm: 2.2
      env: RAILS_VERSION='~> 6.0.0'
    - rvm: 2.3
      env: RAILS_VERSION='~> 6.0.0'
    - rvm: 2.4
      env: RAILS_VERSION='~> 6.0.0'
    # Rails 4.2 uses BigDecimal.new, which Ruby 2.7 removed
    - rvm: 2.7
      env: RAILS_VERSION='~> 4.2.0' SQLITE_VERSION='~> 1.3.6'

Use full env for matrix exclude
Use full env for matrix exclude