diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-08-30 16:45:28 +0200 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-08-30 16:45:28 +0200 |
commit | 68bcd1ed660ec876addc020407549c2dac18fa0c (patch) | |
tree | 268b1d46d5accf2489101fba5db1cb764723b195 /Rakefile | |
parent | eb65357d5f510769345466021a5487cc2aa0992c (diff) | |
download | bundler-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-- | Rakefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |