summaryrefslogtreecommitdiff
path: root/spec/simplecov_env.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-30 18:54:03 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-21 12:44:24 +0200
commit8cc7a2dd6f201019d6848aade74d938db356cc39 (patch)
tree1e91ae5415fdef0086a8f577bea705b46e11aac5 /spec/simplecov_env.rb
parent2d3978842cb1742d1c974fa57c29b6508a365c24 (diff)
downloadgitlab-ce-8cc7a2dd6f201019d6848aade74d938db356cc39.tar.gz
Store all simplecov configuration in one file
Diffstat (limited to 'spec/simplecov_env.rb')
-rw-r--r--spec/simplecov_env.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb
new file mode 100644
index 00000000000..a833255d407
--- /dev/null
+++ b/spec/simplecov_env.rb
@@ -0,0 +1,18 @@
+if ENV['SIMPLECOV']
+ require 'simplecov'
+
+ SimpleCov.start :rails do
+ if ENV['CI_BUILD_NAME']
+ coverage_dir "coverage/#{ENV['CI_BUILD_NAME']}"
+ command_name ENV['CI_BUILD_NAME']
+ merge_timeout 7200
+ end
+
+ add_filter '/vendor/ruby/'
+
+ add_group 'Services', 'app/services'
+ add_group 'Finders', 'app/finders'
+ add_group 'Uploaders', 'app/uploaders'
+ add_group 'Validators', 'app/validators'
+ end
+end