brew-test-bot: add fail-fast option.
Allows easier testing of failures due to bad state.
This commit is contained in:
parent
56aec9494c
commit
27c1a67ed6
@ -14,6 +14,7 @@
|
|||||||
# --local: Ask Homebrew to write verbose logs under ./logs/ and set HOME to ./home/
|
# --local: Ask Homebrew to write verbose logs under ./logs/ and set HOME to ./home/
|
||||||
# --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.
|
# --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-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.
|
||||||
@ -134,6 +135,8 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
FileUtils.rm(log) unless ARGV.include? "--keep-logs"
|
FileUtils.rm(log) unless ARGV.include? "--keep-logs"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
exit 1 if ARGV.include?("--fail-fast") && @status == :failed
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user