Skip to content

Commit

Permalink
Add codeclimate test reporter (CI only)
Browse files Browse the repository at this point in the history
requires repo admin to add
CODECLIMATE_REPO_TOKEN
to the CI env
  • Loading branch information
bf4 committed Sep 6, 2015
1 parent 94469be commit c401722
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .simplecov
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ end.new do
SimpleCov.start 'app'
if @generate_report
if @running_ci
@output.puts '[COVERAGE] Running with SimpleCov Simple Formatter'
formatters = [SimpleCov::Formatter::SimpleFormatter]
require 'codeclimate-test-reporter'
@output.puts '[COVERAGE] Running with SimpleCov Simple Formatter and CodeClimate Test Reporter'
formatters = [
SimpleCov::Formatter::SimpleFormatter,
CodeClimate::TestReporter::Formatter
]
else
@output.puts '[COVERAGE] Running with SimpleCov HTML Formatter'
formatters = [SimpleCov::Formatter::HTMLFormatter]
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ group :test do
gem 'activerecord'
gem 'sqlite3', platform: :ruby
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
gem 'codeclimate-test-reporter', require: false
end

group :test, :development do
gem 'simplecov', '~> 0.10', require: false
Expand Down

0 comments on commit c401722

Please sign in to comment.