diff options
author | Rémy Coutable <remy@rymai.me> | 2017-04-28 18:05:39 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-04-28 18:05:39 +0000 |
commit | fe57708e6a0f2b09d95e61130310c826b3437524 (patch) | |
tree | 10a92f29574ecd4082d1cae75e5293749aad60ee /config/initializers | |
parent | 2952a447794e492122820b5a0eb54f75b83a2abd (diff) | |
download | gitlab-ce-fe57708e6a0f2b09d95e61130310c826b3437524.tar.gz |
Resolve "rspec_profiling is enabled for MySQL"
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/rspec_profiling.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/initializers/rspec_profiling.rb b/config/initializers/rspec_profiling.rb index b909cc5b9a4..a7efd74f09e 100644 --- a/config/initializers/rspec_profiling.rb +++ b/config/initializers/rspec_profiling.rb @@ -36,10 +36,10 @@ if Rails.env.test? RspecProfiling::Collectors::PSQL.prepend(RspecProfilingExt::PSQL) config.collector = RspecProfiling::Collectors::PSQL end - end - if ENV.has_key?('CI') && ENV['GITLAB_DATABASE'] == 'postgresql' - RspecProfiling::VCS::Git.prepend(RspecProfilingExt::Git) - RspecProfiling::Run.prepend(RspecProfilingExt::Run) + if ENV.key?('CI') + RspecProfiling::VCS::Git.prepend(RspecProfilingExt::Git) + RspecProfiling::Run.prepend(RspecProfilingExt::Run) + end end end |