From fcf2684e62a9a03015b0fa58766bb78dd8073c1e Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Thu, 22 Dec 2016 03:10:45 +0100 Subject: [PATCH] Fix Travis builds after upgrading code-climate-reporter --- .travis.yml | 2 ++ config.gemspec | 1 + spec/spec_helper.rb | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) 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 ##