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 Aug 28, 2015
1 parent 71821b3 commit 02470bb
Show file tree
Hide file tree
Showing 2 changed files with 10 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
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ group :test, :development do
gem 'simplecov', '~> 0.10', require: false
end

group :test do
gem 'codeclimate-test-reporter', require: false
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

0 comments on commit 02470bb

Please sign in to comment.