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 'simplecov', '~> 0.9'
|
||||||
gem 'jekyll_test_plugin'
|
gem 'jekyll_test_plugin'
|
||||||
gem 'jekyll_test_plugin_malicious'
|
gem 'jekyll_test_plugin_malicious'
|
||||||
|
gem "codeclimate-test-reporter"
|
||||||
gem 'minitest-reporters'
|
gem 'minitest-reporters'
|
||||||
gem 'minitest-profile'
|
gem 'minitest-profile'
|
||||||
gem 'rspec-mocks'
|
gem 'rspec-mocks'
|
||||||
|
|
|
@ -2,11 +2,14 @@ def jruby?
|
||||||
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
||||||
end
|
end
|
||||||
|
|
||||||
unless ENV['TRAVIS']
|
if ENV["CI"]
|
||||||
require File.expand_path('../simplecov_custom_profile', __FILE__)
|
require "codeclimate-test-reporter"
|
||||||
SimpleCov.start('gem') do
|
CodeClimate::TestReporter.start
|
||||||
add_filter "/vendor/bundle"
|
else
|
||||||
|
require File.expand_path("../simplecov_custom_profile", __FILE__)
|
||||||
|
SimpleCov.start "gem" do
|
||||||
add_filter "/vendor/gem"
|
add_filter "/vendor/gem"
|
||||||
|
add_filter "/vendor/bundle"
|
||||||
add_filter ".bundle"
|
add_filter ".bundle"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue