@@ -40,10 +40,10 @@ To specify them, use the `rvm:` key in your `.travis.yml` file:
40
40
` ` ` yaml
41
41
language: ruby
42
42
rvm:
43
- - 2.2
43
+ - 2.5
44
+ - 2.6
44
45
- jruby
45
46
- truffleruby
46
- - 2.0.0-p247
47
47
` ` `
48
48
{: data-file=".travis.yml"}
49
49
@@ -85,7 +85,7 @@ language: ruby
85
85
rvm:
86
86
- truffleruby # latest release
87
87
# or
88
- - truffleruby-1.0.0-rc9 # specific version
88
+ - truffleruby-19.2.0 # specific version
89
89
` ` `
90
90
{: data-file=".travis.yml"}
91
91
@@ -141,28 +141,29 @@ directory.
141
141
# ### Bundler 2.0
142
142
143
143
On January 3rd 2019 the Bundler team released [Bundler 2.0](https://bundler.io/blog/2019/01/03/announcing-bundler-2.html)
144
- which dropped support for Ruby versions 2.2 and older, and added a new dependency
145
- on RubyGems 3.0.0.
146
- A subsequent release, [2.0.1](https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html),
147
- requires RubyGems 2.5.0.
144
+ which requires Ruby 2.3+.
145
+ A subsequent [2.0.1](https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html) release
146
+ lowered the required RubyGems version to 2.5.0, which is available by default on Ruby 2.3+.
148
147
149
- Under many configurations, Travis CI installs the Ruby runtime on the fly.
150
- This means installing the latest Bundler at run time, which may cause problems
151
- due to the unsatisfied requirements.
148
+ Therefore, *there is no need to update RubyGems* for Bundler 2.
152
149
153
- If you find your builds are failing due to “bundler not installed” errors, try one of the following solutions :
150
+ TravisCI uses Bundler 1 by default.
151
+ If your `Gemfile.lock` has a `BUNDLED WITH 1.x` section (or no such section),
152
+ the default behavior should be enough and require no changes.
153
+
154
+ If you find your builds are failing due to “bundler not installed” errors or
155
+ want to use Bundler 2.0, try one of the following solutions :
154
156
155
157
* If you’re using Ruby 2.3 or higher, and you wish to upgrade to Bundler 2.0,
156
- use the following in your `.travis.yml` to update RubyGems :
158
+ use the following in your `.travis.yml` :
157
159
158
160
` ` ` yaml
159
161
before_install:
160
- - gem update --system
161
162
- gem install bundler
162
163
` ` `
163
164
{: data-file=".travis.yml"}
164
165
165
- * If you are using Ruby 2.3.x but wish to stay on Bundler 1.x (e.g., for dependency
166
+ * If you are using Ruby 2.3.x but wish to explicitly stay on Bundler 1.x (e.g., for dependency
166
167
reasons such as Rails 4.2.x), write :
167
168
168
169
` ` ` yaml
@@ -173,7 +174,7 @@ If you find your builds are failing due to “bundler not installed” errors, t
173
174
{: data-file=".travis.yml"}
174
175
175
176
The `gem uninstall` command above removes any Bundler 2.x installed in
176
- RVM's "global" gemset during the Ruby run time installation , which would be
177
+ RVM's "global" gemset during the Ruby installation by RVM , which would be
177
178
selected as the default `bundle` command.
178
179
We ignore the failure from that command, because the failure most likely
179
180
means that there was no matching Bundler version to uninstall.
0 commit comments