sudo: false
language: ruby
cache: bundler

rvm:
  - 2.2.7
  - 2.3.4
  - 2.4.1
  - ruby-head

gemfile:
  - gemfiles/rails_5_0.gemfile
  - gemfiles/rails_5_1.gemfile

before_install: gem install bundler -v 1.15.3

before_script:
  - psql -c 'CREATE DATABASE activerecord_where_assoc' -U postgres
  - mysql -e 'CREATE DATABASE activerecord_where_assoc'

script:
  - DB=mysql bundle exec rake test
  - DB=pg bundle exec rake test
  - DB=sqlite3 bundle exec rake test
  - bundle exec rake coveralls:push

matrix:
  fast_finish: true
  allow_failures:
    - rvm: ruby-head

sudo: false
language: ruby
cache: bundler

rvm:
  - 2.2.7
  - 2.3.4
  - 2.4.1
  - ruby-head

gemfile:
  - gemfiles/rails_5_0.gemfile
  - gemfiles/rails_5_1.gemfile

before_install: gem install bundler -v 1.15.3

before_script:
  - psql -c 'CREATE DATABASE activerecord_where_assoc' -U postgres
  - mysql -e 'CREATE DATABASE activerecord_where_assoc'

script:
  - DB=mysql bundle exec rake test
  - DB=pg bundle exec rake test
  - DB=sqlite3 bundle exec rake test
  - bundle exec rake coveralls:push

matrix:
  # fast_finish makes Travis send multiple notification email when things fail.
  # https://github.com/travis-ci/travis-ci/issues/1696
  # fast_finish: true
  allow_failures:
    - rvm: ruby-head

Remove fast_finish to avoid multiple build notifications from Travis
Remove fast_finish to avoid multiple build notifications from Travis
