Skip to content

Commit

Permalink
Don't use coverage, even if we're on Travis, if the NO_COVERAGE envir…
Browse files Browse the repository at this point in the history
…onment variable is set.
  • Loading branch information
chrisseaton committed Jan 21, 2016
1 parent 22135df commit ae52a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -2,7 +2,7 @@

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

Expand Down

0 comments on commit ae52a45

Please sign in to comment.