From 2cf5ceaa20d8988caff6f984b688ba67f91d1a8a Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 19 Jan 2016 17:07:42 +0100 Subject: [PATCH] tests: don't use Coveralls outside of CI --- Library/Homebrew/test/.simplecov | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov index 012a6275f1..eaab7dffac 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