test-bot: add flag to reset repository and taps.
This commit is contained in:
parent
b6f9eb0850
commit
857da689bf
@ -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']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user