aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2016-01-19 17:07:42 +0100
committerBaptiste Fontaine2016-02-06 14:20:57 +0100
commit2cf5ceaa20d8988caff6f984b688ba67f91d1a8a (patch)
treeab865871772fbfe5648a46b24b15369d82597ccb
parent8c19472d6f66f63a2c046f5b54a4f65e4ad53301 (diff)
downloadbrew-2cf5ceaa20d8988caff6f984b688ba67f91d1a8a.tar.bz2
tests: don't use Coveralls outside of CI
-rw-r--r--Library/Homebrew/test/.simplecov4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov
index 012a6275f..eaab7dffa 100644
--- a/Library/Homebrew/test/.simplecov
+++ b/Library/Homebrew/test/.simplecov
@@ -23,7 +23,9 @@ if ENV["HOMEBREW_INTEGRATION_TEST"]
end
end
-if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"]
+# Don't use Coveralls outside of CI, as it will override SimpleCov's default
+# formatter causing the `index.html` not to be written once all tests finish.
+if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"] && ENV["CI"]
require "coveralls"
Coveralls.wear!
end