diff --git a/Gemfile b/Gemfile index e6ed6f28..a7906ba6 100644 --- a/Gemfile +++ b/Gemfile @@ -20,7 +20,6 @@ end group :development do gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION']) - gem 'codecov' gem 'simplecov' gem 'simplecov-console' diff --git a/README.md b/README.md index 1f2cfbeb..54467266 100644 --- a/README.md +++ b/README.md @@ -410,7 +410,7 @@ You can enable it, set the following environment variable:s ``SIMPLECOV=yes`` -Remember to add the simplecov-console and codecov gems to your `Gemfile`. If you run `spec:simplecov` on Travis-CI or any of the other supported CI services, reports gets automatically uploaded to https://codecov.io/ . +Remember to add the simplecov-console gem to your `Gemfile`. If you run `spec:simplecov` on Travis-CI or any of the other supported CI services, reports get generated which can then be uploading to codecov.io with the supported codecov [uploader](https://docs.codecov.com/docs/codecov-uploader). Some Notes for Windows Users ============================ diff --git a/lib/puppetlabs_spec_helper/module_spec_helper.rb b/lib/puppetlabs_spec_helper/module_spec_helper.rb index 412c0a9e..f3d5972d 100644 --- a/lib/puppetlabs_spec_helper/module_spec_helper.rb +++ b/lib/puppetlabs_spec_helper/module_spec_helper.rb @@ -24,13 +24,12 @@ def verify_contents(subject, title, expected_lines) begin require 'simplecov' require 'simplecov-console' - require 'codecov' SimpleCov.formatters = [ SimpleCov::Formatter::HTMLFormatter, - SimpleCov::Formatter::Console, - SimpleCov::Formatter::Codecov + SimpleCov::Formatter::Console ] + SimpleCov.start do track_files 'lib/**/*.rb' add_filter '/spec' @@ -48,7 +47,7 @@ def verify_contents(subject, title, expected_lines) end end rescue LoadError - raise 'Add the simplecov, simplecov-console, codecov gems to Gemfile to enable this task' + raise 'Add the simplecov and simplecov-console gems to Gemfile to enable this task' end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7d6844ed..8d458c5f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,11 +10,6 @@ SimpleCov::Formatter::Console ] - if ENV['CI'] == 'true' - require 'codecov' - SimpleCov.formatters << SimpleCov::Formatter::Codecov - end - SimpleCov.start do track_files 'lib/**/*.rb' @@ -27,7 +22,7 @@ add_filter '/.vendor' end rescue LoadError - raise 'Add the simplecov, simplecov-console, codecov gems to Gemfile to enable this task' + raise 'Add the simplecov and simplecov-console gems to Gemfile to enable this task' end end