language: ruby
services:
  - postgresql
  - mysql
addons:
  postgresql: "9.6"
rvm:
  - "2.3.8"
  - "2.4.7"
  - "2.5.6"
  - "2.6.4"
gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
  - gemfiles/rails_6.0.gemfile
env:
  - DB=postgresql
  - DB=sqlite3
  - DB=mysql2
matrix:
  exclude:
    - rvm: "2.3.8"
      gemfile: gemfiles/rails_6.0.gemfile
    - rvm: "2.4.6"
      gemfile: gemfiles/rails_6.0.gemfile
before_install:
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
install:
  - bundle update
before_script:
  - psql -c 'create database counter_culture_test;' -U postgres
  - mysql -e 'CREATE DATABASE counter_culture_test;'
script: TRAVIS=true bundle exec rake spec

language: ruby
services:
  - postgresql
  - mysql
addons:
  postgresql: "9.6"
rvm:
  - "2.3.8"
  - "2.4.7"
  - "2.5.6"
  - "2.6.4"
gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
  - gemfiles/rails_6.0.gemfile
env:
  - DB=postgresql
  - DB=sqlite3
  - DB=mysql2
matrix:
  exclude:
    - rvm: "2.3.8"
      gemfile: gemfiles/rails_6.0.gemfile
    - rvm: "2.4.7"
      gemfile: gemfiles/rails_6.0.gemfile
before_install:
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
install:
  - bundle update
before_script:
  - psql -c 'create database counter_culture_test;' -U postgres
  - mysql -e 'CREATE DATABASE counter_culture_test;'
script: TRAVIS=true bundle exec rake spec

Fix Ruby 2.4 / Rails 6.0 exclusion
Fix Ruby 2.4 / Rails 6.0 exclusion