brew-test-bot: add --dry-run mode.
This commit is contained in:
parent
e717508b7b
commit
babcad25e3
@ -13,6 +13,7 @@
|
|||||||
# --HEAD: Run brew install with --HEAD
|
# --HEAD: Run brew install with --HEAD
|
||||||
# --local: Ask Homebrew to write verbose logs under ./logs/
|
# --local: Ask Homebrew to write verbose logs under ./logs/
|
||||||
# --tap=<tap>: Use the git repository of the given tap
|
# --tap=<tap>: Use the git repository of the given tap
|
||||||
|
# --dry-run: Just print commands, don't run them.
|
||||||
#
|
#
|
||||||
# --ci-master: Shortcut for Homebrew master branch CI options.
|
# --ci-master: Shortcut for Homebrew master branch CI options.
|
||||||
# --ci-pr: Shortcut for Homebrew pull request CI options.
|
# --ci-pr: Shortcut for Homebrew pull request CI options.
|
||||||
@ -99,6 +100,11 @@ class Step
|
|||||||
|
|
||||||
def run
|
def run
|
||||||
puts_command
|
puts_command
|
||||||
|
if ARGV.include? "--dry-run"
|
||||||
|
puts
|
||||||
|
@status = :passed
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
start_time = Time.now
|
start_time = Time.now
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user