From 726e9fabfc814a46c54111fa4acacdc415effc3e Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Thu, 1 Jan 2015 09:54:19 -0800 Subject: test-bot: do not --cleanup outside CI. Closes #35424. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/test-bot.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library') 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' -- cgit v1.2.3