diff options
author | Rémy Coutable <remy@rymai.me> | 2019-01-08 14:43:19 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-01-08 17:13:36 +0100 |
commit | 10da3ddd312006ac2bf0ba57343f520cef100e36 (patch) | |
tree | fc3252c0dbdc6773f71f54fcfbc49c1cfc1fe63c /spec/simplecov_env.rb | |
parent | 8253a4300e79a581d4afa335af3280ac21b9df63 (diff) | |
download | gitlab-ce-10da3ddd312006ac2bf0ba57343f520cef100e36.tar.gz |
Fix coverage artifact dir to not include '/'
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/simplecov_env.rb')
-rw-r--r-- | spec/simplecov_env.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb index 25ddf932d42..82236bb4201 100644 --- a/spec/simplecov_env.rb +++ b/spec/simplecov_env.rb @@ -1,5 +1,6 @@ require 'simplecov' require 'active_support/core_ext/numeric/time' +require_relative '../lib/gitlab/utils' module SimpleCovEnv extend self @@ -16,8 +17,9 @@ module SimpleCovEnv def configure_job SimpleCov.configure do if ENV['CI_JOB_NAME'] - coverage_dir "coverage/#{ENV['CI_JOB_NAME']}" - command_name ENV['CI_JOB_NAME'] + job_name = Gitlab::Utils.slugify(ENV['CI_JOB_NAME']) + coverage_dir "coverage/#{job_name}" + command_name job_name end if ENV['CI'] |