language: ruby
rvm:
  - 2.3
  - 2.4
  - 2.5
  - jruby-9.1.16.0

gemfile:
  - test/gemfiles/Gemfile-Rails-4-2
  - test/gemfiles/Gemfile-Rails-5-0
  - test/gemfiles/Gemfile-Rails-5-1
  - Gemfile

matrix:
  fast_finish: true

  allow_failures:
    - rvm: jruby-9.1.16.0

language: ruby
rvm:
  - 2.3
  - 2.4
  - 2.5
  - jruby-9.1.16.0

gemfile:
  - test/gemfiles/Gemfile-Rails-4-2
  - test/gemfiles/Gemfile-Rails-5-0
  - test/gemfiles/Gemfile-Rails-5-1
  - Gemfile

script:
  - rm "${BUNDLE_GEMFILE}.lock" && bundle exec rake

matrix:
  fast_finish: true

  allow_failures:
    - rvm: jruby-9.1.16.0

Test against latest dependencies in CI
Test against latest dependencies in CI

This is not very good for contributors, since they might get a failing
build when it's not their fault and build passes locally, but it's good
for discovering incompatibilities in latest dependencies.

We decided to go for the latter.
