diff --git a/.travis.yml b/.travis.yml index 1ae75656..a3272ecb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,3 +38,5 @@ script: addons: code_climate: repo_token: e233a382471f480a061ac3098edadbb91cee8129e0938973aeb2aa8d84a0a93b +after_success: + - bundle exec codeclimate-test-reporter diff --git a/config.gemspec b/config.gemspec index af356c80..8c8d133b 100644 --- a/config.gemspec +++ b/config.gemspec @@ -44,6 +44,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'rubocop', '~> 0.46', '>= 0.46.0' if ENV['TRAVIS'] + s.add_development_dependency 'simplecov', '~> 0.12.0' s.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.3' end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 35cca2d1..8deaa982 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,8 +4,8 @@ # Code Climate # if ENV['TRAVIS'] - require 'codeclimate-test-reporter' - CodeClimate::TestReporter.start + require 'simplecov' + SimpleCov.start end ##