language: ruby

rvm:
  - 2.1.8
  - 2.2.4
  - 2.3.1

gemfile:
  - gemfiles/Gemfile.3.2.mysql2
  - gemfiles/Gemfile.4.2.mysql2
  - gemfiles/Gemfile.4.2.pg
  - gemfiles/Gemfile.5.0.mysql2
  - gemfiles/Gemfile.5.0.pg

before_script:
  - psql -c 'create database minidusen_test;' -U postgres
  - mysql -e 'create database IF NOT EXISTS minidusen_test;'

script: bundle exec rspec spec

sudo: false

cache: bundler

notifications:
  email:
    - fail@makandra.de

matrix:
  exclude:
    - rvm: 2.1.8
      gemfile: gemfiles/Gemfile.5.0.mysql2
    - rvm: 2.1.8
      gemfile: gemfiles/Gemfile.5.0.pg

language: ruby

rvm:
  - 2.1.8
  - 2.2.4
  - 2.3.1

gemfile:
  - gemfiles/Gemfile.3.2.mysql2
  - gemfiles/Gemfile.4.2.mysql2
  - gemfiles/Gemfile.4.2.pg
  - gemfiles/Gemfile.5.0.mysql2
  - gemfiles/Gemfile.5.0.pg

before_script:
  - psql -c 'create database minidusen_test;' -U postgres
  - mysql -e 'create database IF NOT EXISTS minidusen_test;'

script: bundle exec rspec spec

sudo: false

cache: bundler

notifications:
  email:
    - fail@makandra.de

install:
  # Replace default Travis CI bundler script with a version that doesn't
  # explode when lockfile doesn't match recently bumped version
  - gem uninstall bundler -x -I
  - gem install bundler --version='=1.12.5'
  - bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}

matrix:
  exclude:
    - rvm: 2.1.8
      gemfile: gemfiles/Gemfile.5.0.mysql2
    - rvm: 2.1.8
      gemfile: gemfiles/Gemfile.5.0.pg

Replace default Travis CI bundler script with a version that doesn't explode when lockfile doesn't match recently bumped version
Replace default Travis CI bundler script with a version that doesn't explode when lockfile doesn't match recently bumped version
