aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/test-bot.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-12-07 14:08:55 +0000
committerMike McQuaid2015-12-07 14:08:55 +0000
commitd603c03aa3dac553124d09e1e2b78dff8f408284 (patch)
tree3b086a8aafc0c496c09897c21a81bd87f8899dac /Library/Homebrew/cmd/test-bot.rb
parentf7d3710d12247c0c5bb07264834d6503216cba6b (diff)
downloadbrew-d603c03aa3dac553124d09e1e2b78dff8f408284.tar.bz2
test-bot: more Jenkins Mavericks 1.8.7 fixes.
Diffstat (limited to 'Library/Homebrew/cmd/test-bot.rb')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 72def8708..85147e75c 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -414,7 +414,7 @@ module Homebrew
def setup
@category = __method__
return if ARGV.include? "--skip-setup"
- test "brew", "doctor" unless ENV["TRAVIS"]
+ test "brew", "doctor" if !ENV["TRAVIS"] && ENV["HOMEBREW_RUBY"] != "1.8.7"
test "brew", "--env"
test "brew", "config"
end
@@ -655,16 +655,10 @@ module Homebrew
def cleanup_after
@category = __method__
- checkout_args = []
- if ARGV.include? "--cleanup"
- test "git", "clean", "-ffdx"
- checkout_args << "-f"
- end
-
- checkout_args << @start_branch
-
if @start_branch && !@start_branch.empty? && \
(ARGV.include?("--cleanup") || @url || @hash)
+ checkout_args = [@start_branch]
+ checkout_args << "-f" if ARGV.include? "--cleanup"
test "git", "checkout", *checkout_args
end
@@ -673,6 +667,7 @@ module Homebrew
git "stash", "pop"
test "brew", "cleanup", "--prune=7"
git "gc", "--auto"
+ test "git", "clean", "-ffdx"
if ARGV.include? "--local"
FileUtils.rm_rf ENV["HOMEBREW_HOME"]
FileUtils.rm_rf ENV["HOMEBREW_LOGS"]