aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/test-bot.rb
diff options
context:
space:
mode:
authorShaun Jackman2015-01-01 09:54:19 -0800
committerMike McQuaid2015-01-02 09:50:28 +0000
commitc01e6b81d31c38da13f213af02d96293746a2d6c (patch)
tree1a4454bd066488ccc4685168c56c7eaaa7722148 /Library/Homebrew/cmd/test-bot.rb
parente87b377add8f533adfc8e5ea17fa432f284690bb (diff)
downloadbrew-c01e6b81d31c38da13f213af02d96293746a2d6c.tar.bz2
test-bot: do not --cleanup outside CI.
Closes Homebrew/homebrew#35424. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd/test-bot.rb')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 9f8eb947a..9ab166f51 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -602,7 +602,8 @@ module Homebrew
ENV['HOMEBREW_NO_EMOJI'] = '1'
if ARGV.include? '--ci-master' or ARGV.include? '--ci-pr' \
or ARGV.include? '--ci-testing'
- ARGV << '--cleanup' << '--junit' << '--local'
+ ARGV << "--cleanup" if ENV["JENKINS_HOME"] || ENV["TRAVIS_COMMIT"]
+ ARGV << "--junit" << "--local"
end
if ARGV.include? '--ci-master'
ARGV << '--no-bottle' << '--email'