Skip to content

Commit

Permalink
Merge pull request #72 from kyohsuke/fixes_test_on_ruby_2_7
Browse files Browse the repository at this point in the history
fixes ruby 2.7.x test on travis
  • Loading branch information
amatsuda committed May 11, 2020
2 parents 36d8669 + a8122f6 commit 99cfb23
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Expand Up @@ -5,17 +5,20 @@ addons:
mysql: '5.7'

before_install:
- gem i rubygems-update -v '<3' && update_rubygems
- gem i rubygems-update -v "<$RUBYGEMS_LESS_THAN" && update_rubygems
- "ruby -e 'exit RUBY_VERSION.to_f >= 2.6' && gem up bundler || gem i bundler -v '<2'"
- sudo service mysql restart


cache: bundler

env:
- DB=sqlite3
- DB=mysql
- DB=postgresql
global:
- RUBYGEMS_LESS_THAN=3
matrix:
- DB=sqlite3
- DB=mysql
- DB=postgresql

rvm:
- 2.6.3
Expand All @@ -32,7 +35,7 @@ matrix:
include:
- rvm: 2.7.1
gemfile: gemfiles/rails_60.gemfile
env: DB=postgresql
env: DB=postgresql RUBYGEMS_LESS_THAN=4
- rvm: 2.6.3
gemfile: gemfiles/rails_edge.gemfile
env: DB=postgresql
Expand Down

0 comments on commit 99cfb23

Please sign in to comment.