Add CodeClimate to the testing stuff.
This commit is contained in:
parent
8669077daf
commit
55423e344e
1
Gemfile
1
Gemfile
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue