From 1c43d6773b5350650898b3c8af92ae8fc05708c4 Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Sat, 13 Oct 2018 18:56:02 +0100 Subject: [PATCH] Add CodeCov support to .travis.yml Inspired by the changes in https://github.com/sendgrid/sendgrid-ruby/pull/261 Closes #59. --- .travis.yml | 1 + ruby_http_client.gemspec | 1 + test/test_helper.rb | 3 +++ 3 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index c0d842a..3663338 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ rvm: before_install: - gem install minitest - gem install simplecov +- gem install codecov notifications: hipchat: diff --git a/ruby_http_client.gemspec b/ruby_http_client.gemspec index e32940a..447c2ad 100644 --- a/ruby_http_client.gemspec +++ b/ruby_http_client.gemspec @@ -15,6 +15,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(/^(test|spec|features)/) spec.require_paths = ['lib'] + spec.add_development_dependency 'codecov' spec.add_development_dependency 'minitest' spec.add_development_dependency 'rake' spec.add_development_dependency 'rubocop' diff --git a/test/test_helper.rb b/test/test_helper.rb index 9d0bdec..058d9cd 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,4 +1,7 @@ if ENV['CI'] == 'true' require 'simplecov' SimpleCov.start + + require 'codecov' + SimpleCov.formatter = SimpleCov::Formatter::Codecov end