Store all simplecov configuration in one file
This commit is contained in:
parent
2d3978842c
commit
8cc7a2dd6f
|
@ -40,6 +40,7 @@ stages:
|
||||||
paths:
|
paths:
|
||||||
- knapsack/
|
- knapsack/
|
||||||
artifacts:
|
artifacts:
|
||||||
|
expire_in: 31d
|
||||||
paths:
|
paths:
|
||||||
- knapsack/
|
- knapsack/
|
||||||
|
|
||||||
|
@ -70,6 +71,7 @@ update-coverage:
|
||||||
script:
|
script:
|
||||||
- bundle exec scripts/merge-simplecov
|
- bundle exec scripts/merge-simplecov
|
||||||
artifacts:
|
artifacts:
|
||||||
|
expire_in: 31d
|
||||||
paths:
|
paths:
|
||||||
- coverage/
|
- coverage/
|
||||||
|
|
||||||
|
@ -93,6 +95,7 @@ update-coverage:
|
||||||
- cp knapsack/rspec_report.json ${KNAPSACK_REPORT_PATH}
|
- cp knapsack/rspec_report.json ${KNAPSACK_REPORT_PATH}
|
||||||
- knapsack rspec
|
- knapsack rspec
|
||||||
artifacts:
|
artifacts:
|
||||||
|
expire_in: 31d
|
||||||
paths:
|
paths:
|
||||||
- knapsack/
|
- knapsack/
|
||||||
- coverage/
|
- coverage/
|
||||||
|
@ -110,6 +113,7 @@ update-coverage:
|
||||||
- cp knapsack/spinach_report.json ${KNAPSACK_REPORT_PATH}
|
- cp knapsack/spinach_report.json ${KNAPSACK_REPORT_PATH}
|
||||||
- knapsack spinach "-r rerun" || retry '[ ! -e tmp/spinach-rerun.txt ] || bundle exec spinach -r rerun $(cat tmp/spinach-rerun.txt)'
|
- knapsack spinach "-r rerun" || retry '[ ! -e tmp/spinach-rerun.txt ] || bundle exec spinach -r rerun $(cat tmp/spinach-rerun.txt)'
|
||||||
artifacts:
|
artifacts:
|
||||||
|
expire_in: 31d
|
||||||
paths:
|
paths:
|
||||||
- knapsack/
|
- knapsack/
|
||||||
- coverage/
|
- coverage/
|
||||||
|
|
|
@ -1,14 +1,4 @@
|
||||||
if ENV['SIMPLECOV']
|
require_relative Rails.root.join('spec', 'simplecov_env')
|
||||||
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
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
ENV['RAILS_ENV'] = 'test'
|
ENV['RAILS_ENV'] = 'test'
|
||||||
require './config/environment'
|
require './config/environment'
|
||||||
|
|
|
@ -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
|
|
@ -1,14 +1,4 @@
|
||||||
if ENV['SIMPLECOV']
|
require_relative 'simplecov_env'
|
||||||
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
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
ENV["RAILS_ENV"] ||= 'test'
|
ENV["RAILS_ENV"] ||= 'test'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue