test-bot: optionally disable verbose install.

This commit is contained in:
Mike McQuaid 2015-09-19 08:19:49 +01:00
parent 359cdafb86
commit e34033310a

View File

@ -18,6 +18,7 @@
# --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. # --fail-fast: Immediately exit on a failing step.
# --verbose: Print out all logs in realtime # --verbose: Print out all logs in realtime
# --no-verbose-install: Don't run `brew install` with `--verbose`.
# #
# --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.
@ -531,7 +532,8 @@ module Homebrew
formula_fetch_options << canonical_formula_name formula_fetch_options << canonical_formula_name
test "brew", "fetch", "--retry", *formula_fetch_options test "brew", "fetch", "--retry", *formula_fetch_options
test "brew", "uninstall", "--force", canonical_formula_name if formula.installed? test "brew", "uninstall", "--force", canonical_formula_name if formula.installed?
install_args = %w[--verbose] install_args = []
install_args << "--verbose" unless ARGV.include? "--no-verbose-install"
install_args << "--build-bottle" unless ARGV.include? "--no-bottle" install_args << "--build-bottle" unless ARGV.include? "--no-bottle"
install_args << "--HEAD" if ARGV.include? "--HEAD" install_args << "--HEAD" if ARGV.include? "--HEAD"