diff options
| author | Mike McQuaid | 2015-02-19 11:37:07 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-19 11:37:07 +0000 |
| commit | 857da689bfd513b11ea050102b00c69340a6fa90 (patch) | |
| tree | 333da9ac0110d0faff6c194222b651f78ad1205e /Library | |
| parent | b6f9eb0850ce1bb93328d027bc55e72e83c8bf30 (diff) | |
| download | brew-857da689bfd513b11ea050102b00c69340a6fa90.tar.bz2 | |
test-bot: add flag to reset repository and taps.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/test-bot.rb | 18 |
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'] |
