mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Generate code coverage report on Circle CI
This commit is contained in:
parent
f47ee2e154
commit
5e34587db5
@ -1,6 +1,11 @@
|
||||
if ENV['RAILS_ENV'] == 'test'
|
||||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
|
||||
if ENV['CIRCLE_ARTIFACTS'] # https://circleci.com/docs/code-coverage
|
||||
dir = File.join("..", "..", "..", ENV['CIRCLE_ARTIFACTS'], "coverage")
|
||||
SimpleCov.coverage_dir(dir)
|
||||
end
|
||||
end
|
||||
|
||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user