tests: don't use Coveralls outside of CI

This commit is contained in:
Baptiste Fontaine 2016-01-19 17:07:42 +01:00
parent 8c19472d6f
commit 2cf5ceaa20

View File

@ -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