diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-24 21:57:27 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-24 21:57:27 +0300 |
commit | f23b35b01297d1d14cfdf17594c4abf28ab45dc9 (patch) | |
tree | 87b6fc72f7121d7058161b0431d520d0be443b2e /config/initializers/rspec_profiling.rb | |
parent | 4014deae3b6441b927d01f5f5c145ca8f1a5be43 (diff) |
RSpec profiling: Prepend the branch name with `ce` or `ee`
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config/initializers/rspec_profiling.rb')
-rw-r--r-- | config/initializers/rspec_profiling.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/initializers/rspec_profiling.rb b/config/initializers/rspec_profiling.rb index 70177995356..764c067c6f0 100644 --- a/config/initializers/rspec_profiling.rb +++ b/config/initializers/rspec_profiling.rb @@ -7,7 +7,11 @@ module RspecProfilingExt module Git def branch - ENV['CI_COMMIT_REF_NAME'] || super + if ENV['CI_COMMIT_REF_NAME'] + "#{defined?(Gitlab::License) ? 'ee' : 'ce'}:#{ENV['CI_COMMIT_REF_NAME']}" + else + super + end end end |