diff options
Diffstat (limited to 'Library/Homebrew/dev-cmd/test-bot.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/test-bot.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb index 1a2095068..7f2235e3a 100644 --- a/Library/Homebrew/dev-cmd/test-bot.rb +++ b/Library/Homebrew/dev-cmd/test-bot.rb @@ -711,6 +711,16 @@ module Homebrew return if @skip_homebrew if !@tap && (@formulae.empty? || @test_default_formula) + # TODO: try to fix this on Linux at some stage. + if OS.mac? + # test update from origin/master to current commit. + test "brew", "update-test" + # test no-op update from current commit (to current commit, a no-op). + test "brew", "update-test", "--commit=HEAD" + end + + test "brew", "readall", "--syntax" + coverage_args = [] if ARGV.include?("--coverage") if ENV["JENKINS_HOME"] @@ -725,19 +735,11 @@ module Homebrew test "brew", "tests", "--no-compat" test "brew", "tests", "--generic" test "brew", "tests", "--official-cmd-taps", *coverage_args - test "brew", "readall", "--syntax" + if OS.mac? run_as_not_developer { test "brew", "tap", "caskroom/cask" } test "brew", "cask-tests", *coverage_args end - - # TODO: try to fix this on Linux at some stage. - if OS.mac? - # test update from origin/master to current commit. - test "brew", "update-test" - # test no-op update from current commit (to current commit, a no-op). - test "brew", "update-test", "--commit=HEAD" - end elsif @tap test "brew", "readall", "--aliases", @tap.name end |
