Skip to content

Commit ae52a45

Browse files
committed
Don't use coverage, even if we're on Travis, if the NO_COVERAGE environment variable is set.
1 parent 22135df commit ae52a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# we can't use our helpers here because we need to load the gem _after_ simplecov
44
unless RUBY_ENGINE == 'jruby' && 0 == (JRUBY_VERSION =~ /^9\.0\.0\.0/)
5-
if ENV['COVERAGE'] || ENV['CI'] || ENV['TRAVIS']
5+
if (ENV['COVERAGE'] || ENV['CI'] || ENV['TRAVIS']) && !ENV['NO_COVERAGE']
66
require 'simplecov'
77
require 'coveralls'
88

0 commit comments

Comments
 (0)