summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-02-10 18:27:40 +0000
committerColby Swandale <me@colby.fyi>2019-04-03 21:21:04 +1100
commit65c4143beb1ebb281fa44afdd296298d22b4cc66 (patch)
treeeef52e6f4dc4f2b066fe9e370e96e7347b1be5d4
parenta97a20ef5952280c7c3a69173a7da5a4724b8fe6 (diff)
downloadbundler-65c4143beb1ebb281fa44afdd296298d22b4cc66.tar.gz
Merge #6948
6948: Bump rubygems to 3.0.2 and ruby to 2.6.1 in TravisCI r=deivid-rodriguez a=deivid-rodriguez The problem was that I have some spec failures locally, and they don't seem to be reproduced in TravisCI. My diagnosis was that either my environment is messed up or there's some issues with the latest rubygems + ruby combination. My fix is to use latest rubygems and ruby in Travis, so I can double check whether the problem is just my environment or a real problem. I chose this fix because it's always good practice to test against the latest versions of your dependencies. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> (cherry picked from commit 0ca2f4ea781abf697c484df6ba26feeded744854)
-rw-r--r--.travis.yml9
-rw-r--r--Rakefile9
2 files changed, 14 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index f34ea4ca81..bd2d1e5dcc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,7 +29,7 @@ addons:
secure: "TrzIv116JLGUxm6PAUskCYrv8KTDguncKROVwbnjVPKTGDAgoDderd8JUdDEXrKoZ9qGLD2TPYKExt9/QDl71E+qHdWnVqWv4HKCUk2P9z/VLKzHuggOUBkCXiJUhjywUieCJhI3N92bfq2EjSBbu2/OFHqWOjLQ+QCooTEBjv8="
rvm:
- - 2.6.0
+ - 2.6.1
- 2.5.3
- 2.4.5
- 2.3.8
@@ -40,12 +40,15 @@ env:
# We need to know if changes to rubygems will break bundler on release
- RGV=master
# Test the latest rubygems release with all of our supported rubies
- - RGV=v3.0.1
+ - RGV=v3.0.2
matrix:
include:
+ - rvm: 2.6.1
+ script: rake rubocop
+ stage: linting
# 3.x mode
- - rvm: 2.5.3
+ - rvm: 2.6.1
env: RGV=v3.0.1 BUNDLER_SPEC_SUB_VERSION=3.0.0
# Ruby 2.5, Rubygems 2.7 and up
- rvm: 2.5.3
diff --git a/Rakefile b/Rakefile
index 1254bf2149..fcd05652e5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -72,6 +72,13 @@ namespace :spec do
# Install the gems with a consistent version of RubyGems
sh "gem update --system 2.6.12"
+ # Fix incorrect default gem specifications on ruby 2.6.1. Can be removed
+ # when 2.6.2 is released and we start testing against it
+ if RUBY_VERSION == "2.6.1"
+ sh "gem install etc:1.0.1 --default"
+ sh "gem install bundler:1.17.2 --default"
+ end
+
$LOAD_PATH.unshift("./spec")
require "support/rubygems_ext"
Spec::Rubygems::DEPS["codeclimate-test-reporter"] = "~> 0.6.0" if RUBY_VERSION >= "2.2.0"
@@ -133,7 +140,7 @@ begin
rubyopt = ENV["RUBYOPT"]
# When editing this list, also edit .travis.yml!
branches = %w[master]
- releases = %w[v1.3.6 v1.3.7 v1.4.2 v1.5.3 v1.6.2 v1.7.2 v1.8.29 v2.0.14 v2.1.11 v2.2.5 v2.4.8 v2.5.2 v2.6.8 v2.6.14 v2.7.7 v3.0.1]
+ releases = %w[v2.5.2 v2.6.14 v2.7.7 v3.0.2]
(branches + releases).each do |rg|
desc "Run specs with RubyGems #{rg}"
RSpec::Core::RakeTask.new(rg) do |t|