Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/simplecov_env.rb')
-rw-r--r--spec/simplecov_env.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb
index d48acc77afb..fbf4401ac2f 100644
--- a/spec/simplecov_env.rb
+++ b/spec/simplecov_env.rb
@@ -21,9 +21,9 @@ module SimpleCovEnv
def configure_job
SimpleCov.configure do
if ENV['CI_JOB_NAME']
- job_name = Gitlab::Utils.slugify(ENV['CI_JOB_NAME'])
- coverage_dir "coverage/#{job_name}"
- command_name job_name
+ coverage_name = Gitlab::Utils.slugify("#{ENV['CI_JOB_NAME']}-#{ENV['CI_PROJECT_ID']}")
+ coverage_dir "coverage/#{coverage_name}"
+ command_name coverage_name
end
if ENV['CI']