Set profiler only for postgresql not mysql

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10156#note_26812609
This commit is contained in:
Lin Jen-Shin 2017-04-10 19:21:45 +08:00
parent f1e2387e28
commit 76e7d2564d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ if Rails.env.test?
end
end
if ENV.has_key?('CI')
if ENV.has_key?('CI') && ENV['GITLAB_DATABASE'] == 'postgresql'
RspecProfiling::VCS::Git.prepend(RspecProfilingExt::Git)
RspecProfiling::Run.prepend(RspecProfilingExt::Run)
end