summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-08-30 16:45:28 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-08-30 16:45:28 +0200
commit68bcd1ed660ec876addc020407549c2dac18fa0c (patch)
tree268b1d46d5accf2489101fba5db1cb764723b195 /Rakefile
parenteb65357d5f510769345466021a5487cc2aa0992c (diff)
downloadbundler-68bcd1ed660ec876addc020407549c2dac18fa0c.tar.gz
If you want to run a Rake task twice using invoke, you need to reenable it first
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 2f32dff57f..2ea40be8b9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -117,10 +117,15 @@ begin
desc "Run the tests on Travis CI against a rubygem version (using ENV['RGV'])"
task "travis" do
rg = ENV['RGV'] || 'master'
+
puts "\n\e[1;33m[Travis CI] Running bundler sudo specs against rubygems #{rg}\e[m\n\n"
sudos = Rake::Task["spec:rubygems:#{rg}:sudo"].invoke
+
+ Rake::Task["spec"].reenable
+
puts "\n\e[1;33m[Travis CI] Running bundler specs against rubygems #{rg}\e[m\n\n"
specs = Rake::Task["spec:rubygems:#{rg}"].invoke
+
specs && sudos
end
end