aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/test-bot.rb
diff options
context:
space:
mode:
authorXu Cheng2015-12-20 01:02:53 +0800
committerXu Cheng2015-12-21 12:14:48 +0800
commit51efa46fcc91f4cc635ed8b7bd77a0a35f7656b6 (patch)
treebe2cae0c743d2a326ac51cbc582057a9c7156e6d /Library/Homebrew/cmd/test-bot.rb
parenta6d2723ef532dc576968f6f9e155c165e47f26b2 (diff)
downloadbrew-51efa46fcc91f4cc635ed8b7bd77a0a35f7656b6.tar.bz2
test-bot: enable coverage on travis
Diffstat (limited to 'Library/Homebrew/cmd/test-bot.rb')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index b297c71d8..899d869ff 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -651,9 +651,13 @@ module Homebrew
if @tap
test "brew", "readall", @tap.name
else
- test "brew", "tests", "--no-compat"
+ tests_args = ["--no-compat"]
readall_args = ["--aliases"]
- readall_args << "--syntax" if RUBY_VERSION.split(".").first.to_i >= 2
+ if RUBY_VERSION.split(".").first.to_i >= 2
+ tests_args << "--coverage" if ENV["TRAVIS"]
+ readall_args << "--syntax"
+ end
+ test "brew", "tests", *tests_args
test "brew", "readall", *readall_args
test "brew", "update-test"
end