mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-02 17:28:55 -05:00
Update flatware merge approach for newer simplecov (#40706)
This commit is contained in:
22
.simplecov
22
.simplecov
@@ -1,9 +1,25 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
SimpleCov.configure do
|
||||
# During parallel runs, ensure unique names for post-run merge
|
||||
command_name "job-#{ENV['TEST_ENV_NUMBER']}" if ENV['TEST_ENV_NUMBER']
|
||||
# TODO: https://github.com/briandunn/flatware/pull/123
|
||||
# Monitor for updated instructions / automation
|
||||
if defined?(Flatware)
|
||||
Flatware.configure do |config|
|
||||
config.before_fork do
|
||||
parent_pid = Process.pid
|
||||
at_exit do
|
||||
next if Process.pid != parent_pid
|
||||
|
||||
begin
|
||||
Process.waitall
|
||||
rescue Errno::ECHILD
|
||||
# No remaining children — already reaped elsewhere.
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
SimpleCov.configure do
|
||||
if ENV['CI']
|
||||
require 'simplecov-lcov'
|
||||
formatter SimpleCov::Formatter::LcovFormatter
|
||||
|
||||
Reference in New Issue
Block a user