Skip to content

Commit 681d537

Browse files
authored
Update .travis.yml to unblock Ruby 2.2 builds (#628)
* Update Ruby 2.2.7 to 2.2.10 There are 3 patch versions of security and vulnerability fixes and 2.2.7 was released back in March 28 2017. * Use older version of RubyGems for Ruby 2.2 The current build tries to update to RubyGems 3. This currently fails for Ruby 2.2 because RubyGems 3.0.0 drops support for Ruby 2.2.X. This change should support Ruby 2.2 by explicitly installing RubyGems 2.7 after failing to find a compatible version of 3.
1 parent 55c23eb commit 681d537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: false
22
language: ruby
33
rvm:
4-
- 2.2.7
4+
- 2.2.10
55
- 2.3.8
66
- 2.4.6
77
- 2.5.5
@@ -16,7 +16,7 @@ matrix:
1616
- rvm: ruby-head
1717

1818
before_install:
19-
- gem update --system
19+
- gem update --system || (gem i "rubygems-update:~>2.7" --no-document && update_rubygems)
2020
- gem update bundler
2121

2222
script:

0 commit comments

Comments
 (0)