gitlab-org--gitlab-foss/scripts/merge-simplecov

12 lines
314 B
Text
Raw Normal View History

2016-06-30 10:08:01 -04:00
#!/usr/bin/env ruby
# frozen_string_literal: true
2016-06-30 10:08:01 -04:00
require_relative '../spec/simplecov_env'
SimpleCovEnv.configure_profile
SimpleCovEnv.configure_formatter
2016-06-30 10:08:01 -04:00
resultset_files = Dir.glob(File.join(SimpleCov.coverage_path, '*', '.resultset.json'))
exit(0) if resultset_files.empty?
SimpleCov.collate(resultset_files)