summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-12-19 16:04:53 +0000
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-19 18:50:41 +0100
commit14af0e7417fe1fef3c521b69e0875d3ed5fed971 (patch)
treec8cd5a4ed4d8eeb8c10b903d1f707daaf9b011e0
parent8bd21aa0f5dc92fce4df277715f4eab546d30a7f (diff)
downloadbundler-14af0e7417fe1fef3c521b69e0875d3ed5fed971.tar.gz
Merge #7506
7506: Remove unnecessary CI steps r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that merging #7505 failed. ### What was your diagnosis of the problem? My diagnosis was that some `apt` operation installing `graphviz` failed, but installing `graphviz` was unnecessary in the specific job that failed. ### What is your fix for the problem, implemented in this PR? My fix is to only modifying the OS when strictly necessary. Also fixed another test issue with the recently added test for integration with the `rubygems-bundler` gem by `rvm`. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> (cherry picked from commit 0bc7f5c71e31f6dbb1207324165ee2b95f628bd3)
-rw-r--r--.travis.yml11
-rw-r--r--Rakefile20
-rw-r--r--task/release.rake2
3 files changed, 12 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml
index e7828fd4af..3f0ed68fdd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,8 +4,17 @@ script: bin/rake spec:travis
before_script:
- travis_retry gem install rake:"~> 12.0"
- travis_retry bin/rake override_version
- - travis_retry bin/rake spec:travis:deps
+ - travis_retry bin/rake spec:deps
- bin/rake man:check
+ - if [ "$BUNDLER_SPEC_SUB_VERSION" = "" ];
+ then
+ sudo apt-get install graphviz -y;
+ fi
+ - if [ "$TRAVIS_RUBY_VERSION" = "2.3.8" ];
+ then
+ sudo sed -i 's/1000::/1000:Travis:/g' /etc/passwd;
+ sudo sed -i '/secure_path/d' /etc/sudoers;
+ fi
branches:
only:
diff --git a/Rakefile b/Rakefile
index 4fd9a5179a..07f74edb71 100644
--- a/Rakefile
+++ b/Rakefile
@@ -36,24 +36,6 @@ namespace :spec do
Spec::Rubygems.dev_setup
end
- namespace :travis do
- task :deps do
- # Give the travis user a name so that git won't fatally error
- system "sudo sed -i 's/1000::/1000:Travis:/g' /etc/passwd"
- # Strip secure_path so that RVM paths transmit through sudo -E
- system "sudo sed -i '/secure_path/d' /etc/sudoers"
- # Refresh packages index that the ones we need can be installed
- sh "sudo apt-get update"
- # Install groff so ronn can generate man/help pages
- sh "sudo apt-get install groff-base=1.22.3-10 -y"
- # Install graphviz so that the viz specs can run
- sh "sudo apt-get install graphviz -y"
-
- # Install the other gem deps, etc
- Rake::Task["spec:deps"].invoke
- end
- end
-
task :clean do
rm_rf "tmp"
end
@@ -127,7 +109,7 @@ task :check_rvm_integration do
# The rubygems-bundler gem is installed by RVM by default and it could easily
# break when we change bundler. Make sure that binstubs still run with it
# installed.
- sh("bin/rake install && gem install rubygems-bundler && rake -T")
+ sh("gem install rubygems-bundler && RUBYOPT=-Ilib rake -T")
end
namespace :man do
diff --git a/task/release.rake b/task/release.rake
index cd66ff755d..e7218d2996 100644
--- a/task/release.rake
+++ b/task/release.rake
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-require "bundler/gem_tasks"
+require_relative "../lib/bundler/gem_tasks"
task :build => ["build_metadata"] do
Rake::Task["build_metadata:clean"].tap(&:reenable).real_invoke
end