language: ruby
cache: bundler

rvm:
  - 2.2.0
  - 2.0.0
  - 2.1.0
  - jruby-19mode
  - rbx-2

env:
  - DB=postgres
  - DB=mysql

gemfile:
  - gemfiles/Gemfile.rails-4.0.rb
  - gemfiles/Gemfile.rails-4.1.rb
  - gemfiles/Gemfile.rails-4.2.rb

sudo: false

# Per https://github.com/travis-ci/travis-ci/issues/2821
install: bundle install --retry=3

before_script: 'bundle exec rake db:create db:up'

script: 'COVERALLS=true bundle exec rake test'

language: ruby
cache: bundler

rvm:
  - 2.2.0
  - 2.0.0
  - 2.1.0
  - jruby-19mode
  - rbx-2

env:
  - DB=postgres
  - DB=mysql

gemfile:
  - gemfiles/Gemfile.rails-4.0.rb
  - gemfiles/Gemfile.rails-4.1.rb
  - gemfiles/Gemfile.rails-4.2.rb

matrix:
  allow_failures:
    - rvm: jruby-19mode
      gemfile: gemfiles/Gemfile.rails-4.2.rb
      env: DB=postgres

sudo: false

# Per https://github.com/travis-ci/travis-ci/issues/2821
install: bundle install --retry=3

before_script: 'bundle exec rake db:create db:up'

script: 'COVERALLS=true bundle exec rake test'

Allow failure on AR 4.2 / JRuby / Postgres
Allow failure on AR 4.2 / JRuby / Postgres
