aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb18
1 files changed, 14 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index af89666df..255657fd2 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -16,10 +16,11 @@
# --dry-run: Just print commands, don't run them.
# --fail-fast: Immediately exit on a failing step.
#
-# --ci-master: Shortcut for Homebrew master branch CI options.
-# --ci-pr: Shortcut for Homebrew pull request CI options.
-# --ci-testing: Shortcut for Homebrew testing CI options.
-# --ci-upload: Homebrew CI bottle upload.
+# --ci-master: Shortcut for Homebrew master branch CI options.
+# --ci-pr: Shortcut for Homebrew pull request CI options.
+# --ci-testing: Shortcut for Homebrew testing CI options.
+# --ci-upload: Homebrew CI bottle upload.
+# --ci-reset-and-update: Homebrew CI repository and tap reset and update.
require 'formula'
require 'utils'
@@ -660,6 +661,15 @@ module Homebrew
end
end
+ if ARGV.include? "--ci-reset-and-update"
+ safe_system "git", "reset", "--hard"
+ Dir.glob("#{HOMEBREW_LIBRARY}/Taps/*/*") do |tap|
+ cd tap { safe_system "git", "reset", "--hard" }
+ end
+ safe_system "brew", "update"
+ return
+ end
+
if ARGV.include? '--ci-upload'
jenkins = ENV['JENKINS_HOME']
job = ENV['UPSTREAM_JOB_NAME']