From cc1d9d80d2fc7f3c68070e32b3bce5d819ba42b6 Mon Sep 17 00:00:00 2001 From: Mauro George Date: Tue, 20 Jan 2015 17:52:27 -0200 Subject: [PATCH] Start of Code Climate coverage --- .travis.yml | 4 ++++ awesome_print.gemspec | 1 + spec/spec_helper.rb | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 08d27fb..ec869ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,3 +12,7 @@ gemfile: - gemfiles/rails_4.2.gemfile - gemfiles/mongoid_3.1.gemfile - gemfiles/nobrainer.gemfile + +addons: + code_climate: + repo_token: 177e04fc590139a13502e44a2628979c4e8b94acdb10c78af7c6f913ef7950bd diff --git a/awesome_print.gemspec b/awesome_print.gemspec index 34c1913..4db950e 100644 --- a/awesome_print.gemspec +++ b/awesome_print.gemspec @@ -28,4 +28,5 @@ Gem::Specification.new do |s| s.add_development_dependency "fakefs", ">= 0.2.1" s.add_development_dependency 'sqlite3' s.add_development_dependency 'nokogiri', '>= 1.6.5' + s.add_development_dependency 'codeclimate-test-reporter' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f34dbc8..4d43a29 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,6 +14,8 @@ # $ gem install bundler -v=1.0.2 # $ gem install rspec -v=2.6.0 # +require 'codeclimate-test-reporter' +CodeClimate::TestReporter.start $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))