diff --git a/.travis.yml b/.travis.yml index e360e9a5..f8af4876 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ matrix: - rvm: jruby - rvm: jruby-19mode - rvm: rbx-2 -env: TEST=true +env: TEST=true CODECLIMATE_REPO_TOKEN=81787f7b1c3bfa937edadcafbc94f807bf5af5c1142c7b793f2d9969a271de1f before_install: git submodule update --init --recursive script: bundle exec rake test notifications: diff --git a/Gemfile b/Gemfile index c1d05994..72609e69 100644 --- a/Gemfile +++ b/Gemfile @@ -31,6 +31,7 @@ platforms :jruby do end # Code Quality +gem 'codeclimate-test-reporter', group: :test, require: nil gem 'coveralls', require: false gem 'rubocop', require: false diff --git a/middleman-core/features/support/env.rb b/middleman-core/features/support/env.rb index 08e3442a..61891d8b 100644 --- a/middleman-core/features/support/env.rb +++ b/middleman-core/features/support/env.rb @@ -7,6 +7,9 @@ SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/../..')) require 'coveralls' Coveralls.wear! +require 'codeclimate-test-reporter' +CodeClimate::TestReporter.start + PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__))) require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core') require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core', 'step_definitions') diff --git a/middleman-core/spec/spec_helper.rb b/middleman-core/spec/spec_helper.rb index a9d71768..fefcf9a6 100644 --- a/middleman-core/spec/spec_helper.rb +++ b/middleman-core/spec/spec_helper.rb @@ -3,3 +3,6 @@ SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/..')) require 'coveralls' Coveralls.wear! + +require 'codeclimate-test-reporter' +CodeClimate::TestReporter.start \ No newline at end of file