Commit 10da3ddd authored by Rémy Coutable's avatar Rémy Coutable

Fix coverage artifact dir to not include '/'

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 8253a430
require 'simplecov' require 'simplecov'
require 'active_support/core_ext/numeric/time' require 'active_support/core_ext/numeric/time'
require_relative '../lib/gitlab/utils'
module SimpleCovEnv module SimpleCovEnv
extend self extend self
...@@ -16,8 +17,9 @@ module SimpleCovEnv ...@@ -16,8 +17,9 @@ module SimpleCovEnv
def configure_job def configure_job
SimpleCov.configure do SimpleCov.configure do
if ENV['CI_JOB_NAME'] if ENV['CI_JOB_NAME']
coverage_dir "coverage/#{ENV['CI_JOB_NAME']}" job_name = Gitlab::Utils.slugify(ENV['CI_JOB_NAME'])
command_name ENV['CI_JOB_NAME'] coverage_dir "coverage/#{job_name}"
command_name job_name
end end
if ENV['CI'] if ENV['CI']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment