From c2fc443c29682c38eb6127a3dd35a9f68a345404 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 19 Jan 2019 13:06:13 +0100 Subject: [PATCH 1/2] Test against latest ruby versions --- .travis.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0c94bb579e..cce2a2ab6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,16 +59,22 @@ matrix: - rvm: 2.3.7 env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 gemfile: gemfiles/cancan.gemfile - - rvm: 2.4.4 + - rvm: 2.4.5 env: CI_ORM=mongoid gemfile: gemfiles/rails_5.2.gemfile - - rvm: 2.4.4 + - rvm: 2.4.5 env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 gemfile: gemfiles/rails_5.2.gemfile - - rvm: 2.5.1 + - rvm: 2.5.3 env: CI_ORM=mongoid gemfile: gemfiles/rails_5.2.gemfile - - rvm: 2.5.1 + - rvm: 2.5.3 + env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 + gemfile: gemfiles/rails_5.2.gemfile + - rvm: 2.6.0 + env: CI_ORM=mongoid + gemfile: gemfiles/rails_5.2.gemfile + - rvm: 2.6.0 env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 gemfile: gemfiles/rails_5.2.gemfile - rvm: ruby-head @@ -86,9 +92,15 @@ matrix: - rvm: jruby-9.1.9.0 env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 gemfile: gemfiles/rails_5.1.gemfile + - rvm: jruby-9.2.5.0 + env: CI_ORM=mongoid + gemfile: gemfiles/rails_5.2.gemfile + - rvm: jruby-9.2.5.0 + env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 + gemfile: gemfiles/rails_5.2.gemfile - rvm: jruby-head env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 - gemfile: gemfiles/rails_5.1.gemfile + gemfile: gemfiles/rails_5.2.gemfile allow_failures: - rvm: ruby-head - rvm: rbx-2.2.7 From 7b4b4e1594a099d6ccd572ba464c0844e327e876 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 19 Jan 2019 13:13:13 +0100 Subject: [PATCH 2/2] Force bundler 1.0 Refs: - https://docs.travis-ci.com/user/languages/ruby/#bundler-20 - https://changelog.travis-ci.com/latest-bundler-1-x-is-installed-for-ruby-2-3-0-86330 --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cce2a2ab6e..e66ef3b58d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: ruby -before_install: gem install bundler +before_install: + - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true + - gem install bundler -v '< 2' before_script: - cd spec/dummy_app