When on CI, enable RSpec profiling for `master` only
We don't actually need to monitor RSpec for all our branches. Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
f23b35b012
commit
e0e208abae
|
@ -9,7 +9,8 @@ require 'rspec/rails'
|
||||||
require 'shoulda/matchers'
|
require 'shoulda/matchers'
|
||||||
require 'rspec/retry'
|
require 'rspec/retry'
|
||||||
|
|
||||||
if ENV['RSPEC_PROFILING_POSTGRES_URL'] || ENV['RSPEC_PROFILING']
|
if (ENV['RSPEC_PROFILING_POSTGRES_URL'] || ENV['RSPEC_PROFILING']) &&
|
||||||
|
(!ENV.has_key?('CI') || ENV['CI_COMMIT_REF_NAME'] == 'master')
|
||||||
require 'rspec_profiling/rspec'
|
require 'rspec_profiling/rspec'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue