language: ruby
rvm:
  - 2.5.1
sudo: false
addons:
  postgresql: "9.4"
script: bundle exec rake test
before_script:
  - gem install bundler
  - psql -c 'create database active_median_test;' -U postgres
notifications:
  email:
    on_success: never
    on_failure: change
gemfile:
  - Gemfile
  - test/gemfiles/activerecord51.gemfile
  - test/gemfiles/activerecord50.gemfile
  - test/gemfiles/activerecord42.gemfile

language: ruby
rvm:
  - 2.5.1
sudo: false
addons:
  postgresql: "9.4"
  mariadb: "10.2"
script: bundle exec rake test
before_script:
  - gem install bundler
  - psql -c 'create database active_median_test;' -U postgres
  - mysql -e 'create database active_median_test;'
notifications:
  email:
    on_success: never
    on_failure: change
gemfile:
  - Gemfile
  - test/gemfiles/activerecord51.gemfile
  - test/gemfiles/activerecord50.gemfile
  - test/gemfiles/activerecord42.gemfile
matrix:
  include:
    - gemfile: test/gemfiles/mysql2.gemfile
      env: ADAPTER=mysql2
      rvm: 2.5.1

Test against MariaDB on Travis
Test against MariaDB on Travis
