Add CodeClimate to the testing stuff.

This commit is contained in:
Jordon Bedwell 2016-01-10 11:18:46 -06:00
parent 8669077daf
commit 55423e344e
2 changed files with 8 additions and 4 deletions

View File

@ -17,6 +17,7 @@ group :test do
gem 'simplecov', '~> 0.9'
gem 'jekyll_test_plugin'
gem 'jekyll_test_plugin_malicious'
gem "codeclimate-test-reporter"
gem 'minitest-reporters'
gem 'minitest-profile'
gem 'rspec-mocks'

View File

@ -2,11 +2,14 @@ def jruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
end
unless ENV['TRAVIS']
require File.expand_path('../simplecov_custom_profile', __FILE__)
SimpleCov.start('gem') do
add_filter "/vendor/bundle"
if ENV["CI"]
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
else
require File.expand_path("../simplecov_custom_profile", __FILE__)
SimpleCov.start "gem" do
add_filter "/vendor/gem"
add_filter "/vendor/bundle"
add_filter ".bundle"
end
end