mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Add codeclimate test reporter (CI only)
requires repo admin to add CODECLIMATE_REPO_TOKEN to the CI env
This commit is contained in:
parent
94469be1ca
commit
c401722c10
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user