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'
|
SimpleCov.start 'app'
|
||||||
if @generate_report
|
if @generate_report
|
||||||
if @running_ci
|
if @running_ci
|
||||||
@output.puts '[COVERAGE] Running with SimpleCov Simple Formatter'
|
require 'codeclimate-test-reporter'
|
||||||
formatters = [SimpleCov::Formatter::SimpleFormatter]
|
@output.puts '[COVERAGE] Running with SimpleCov Simple Formatter and CodeClimate Test Reporter'
|
||||||
|
formatters = [
|
||||||
|
SimpleCov::Formatter::SimpleFormatter,
|
||||||
|
CodeClimate::TestReporter::Formatter
|
||||||
|
]
|
||||||
else
|
else
|
||||||
@output.puts '[COVERAGE] Running with SimpleCov HTML Formatter'
|
@output.puts '[COVERAGE] Running with SimpleCov HTML Formatter'
|
||||||
formatters = [SimpleCov::Formatter::HTMLFormatter]
|
formatters = [SimpleCov::Formatter::HTMLFormatter]
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@ -29,6 +29,8 @@ group :test do
|
|||||||
gem 'activerecord'
|
gem 'activerecord'
|
||||||
gem 'sqlite3', platform: :ruby
|
gem 'sqlite3', platform: :ruby
|
||||||
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
||||||
|
gem 'codeclimate-test-reporter', require: false
|
||||||
|
end
|
||||||
|
|
||||||
group :test, :development do
|
group :test, :development do
|
||||||
gem 'simplecov', '~> 0.10', require: false
|
gem 'simplecov', '~> 0.10', require: false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user