language: ruby
dist: xenial
services:
  - postgresql
rvm:
  - 2.6
  - 2.5
  - 2.4
env:
  - ACTIVESUPPORT_MAJOR=5 SINATRA_MAJOR=1
  - ACTIVESUPPORT_MAJOR=5 SINATRA_MAJOR=2
  - ACTIVESUPPORT_MAJOR=6 SINATRA_MAJOR=1
  - ACTIVESUPPORT_MAJOR=6 SINATRA_MAJOR=2
cache: bundler
before_install:
  - gem update --system
  - gem install bundler
notifications:
  email: false
before_script:
  - createdb pliny-gem-test
script:
  - bundle exec rake

language: ruby
dist: xenial
services:
  - postgresql
rvm:
  - 2.6
  - 2.5
  - 2.4
env:
  - ACTIVESUPPORT_MAJOR=5 SINATRA_MAJOR=1
  - ACTIVESUPPORT_MAJOR=5 SINATRA_MAJOR=2
  - ACTIVESUPPORT_MAJOR=6 SINATRA_MAJOR=1
  - ACTIVESUPPORT_MAJOR=6 SINATRA_MAJOR=2
jobs:
  exclude:
    - rvm: 2.4
      env: ACTIVESUPPORT_MAJOR=6 SINATRA_MAJOR=1 # ActiveSupport 6 requries Ruby >= 2.5.0
    - rvm: 2.4
      env: ACTIVESUPPORT_MAJOR=6 SINATRA_MAJOR=2
cache: bundler
before_install:
  - gem update --system
  - gem install bundler
notifications:
  email: false
before_script:
  - createdb pliny-gem-test
script:
  - bundle exec rake

Exclude ActiveSupport 6 w/Ruby 2.4
Exclude ActiveSupport 6 w/Ruby 2.4

Because ActiveSupport 6 requires at least Ruby 2.5
