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

View file

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