language: ruby

rvm:
  - "2.3.8"
  - "2.4.5"
  - "2.5.3"
  - "ruby-head"

gemfile:
  - gemfiles/rails_4.2.10.gemfile
  - gemfiles/rails_5.1.6.gemfile
  - gemfiles/rails_5.2.1.gemfile

cache: bundler

matrix:
  allow_failures:
    - rvm: "ruby-head"

before_script:
  - gem install bundler
  - bundle install
  - cd test/dummy
  - RAILS_ENV=test bundle exec rake db:create db:schema:load --trace
  - cd ../..

script:
  - rake test

language: ruby
cache: bundler
sudo: false

rvm:
  - "2.3.8"
  - "2.4.5"
  - "2.5.3"
  - "ruby-head"

matrix:
  allow_failures:
    - rvm: "ruby-head"

before_script:
  - appraisal install
  - cd test/dummy
  - RAILS_ENV=test bundle exec rake db:create db:schema:load db:environment:set --trace
  - cd ../..

script:
  - appraisal rake test

Use appraisal to excute all gemfiles per ruby in one go.
Use appraisal to excute all gemfiles per ruby in one go.
