language: ruby dist: xenial before_install: # install bundler < 2 because Rails 4.2 is incompatible with bundler >= 2 - gem install bundler -v '1.17.3' install: bundle _1.17.3_ install --jobs=2 --retry=2 --path=${BUNDLE_PATH:-vendor/bundle} cache: bundler script: bundle exec rake rvm: - 2.3 - 2.4 - 2.5 - 2.6 - ruby-head env: matrix: - DEVISE_ORM=active_record - DEVISE_ORM=mongoid services: - mongodb matrix: exclude: # Skip these combinations because they have incompatible dependencies # and will always fail. - rvm: 2.6 gemfile: gemfiles/rails_4.2_stable.gemfile - rvm: ruby-head gemfile: gemfiles/rails_4.2_stable.gemfile - rvm: 2.3 gemfile: gemfiles/rails_6.0_beta.gemfile - rvm: 2.4 gemfile: gemfiles/rails_6.0_beta.gemfile allow_failures: - rvm: ruby-head - gemfile: gemfiles/rails_6.0_beta.gemfile gemfile: - gemfiles/rails_4.2_stable.gemfile - gemfiles/rails_5.0_stable.gemfile - gemfiles/rails_5.1_stable.gemfile - gemfiles/rails_5.2_stable.gemfile - gemfiles/rails_6.0_beta.gemfile