test-bot: run brew tests in no-compat mode

Closes Homebrew/homebrew#42009.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-07-22 17:09:23 +08:00
parent ea21f9bc4d
commit 9e6f1412ad
2 changed files with 2 additions and 0 deletions

View File

@ -560,6 +560,7 @@ module Homebrew
@category = __method__
return if ARGV.include? "--skip-homebrew"
test "brew", "tests"
test "brew", "tests", "--no-compat"
readall_args = []
readall_args << "--syntax" if MacOS.version >= :mavericks
test "brew", "readall", *readall_args

View File

@ -3,6 +3,7 @@ module Homebrew
(HOMEBREW_LIBRARY/"Homebrew/test").cd do
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.include? "--coverage"
ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat"
Homebrew.install_gem_setup_path! "bundler"
quiet_system("bundle", "check") || \
system("bundle", "install", "--path", "vendor/bundle")