Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Only run Codecov in CI environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed May 8, 2015
1 parent 6e76a92 commit 21993d9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
require 'simplecov'
require 'codecov'

SimpleCov.start

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::Codecov
]
if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
else
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
end

require 'replace_gemname'

Expand Down

0 comments on commit 21993d9

Please sign in to comment.