From afec4e29883808706d74ee8f789610453e1ccb75 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 26 Jul 2018 10:09:02 +0100 Subject: [PATCH] Tweak code coverage logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - make OS detection looser to exclude more Linux files on macOS (and vice versa) - Allow slight (0.5%) coverage drops to account for somewhat random fluctuations. --- Library/Homebrew/.simplecov | 4 ++-- Library/Homebrew/test/.codecov.yml | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/.simplecov b/Library/Homebrew/.simplecov index 96b1f3ec0e..38c7d530e1 100755 --- a/Library/Homebrew/.simplecov +++ b/Library/Homebrew/.simplecov @@ -50,8 +50,8 @@ SimpleCov.start do require "rbconfig" host_os = RbConfig::CONFIG["host_os"] - add_filter %r{^/os/mac/} if host_os !~ /darwin/ - add_filter %r{^/os/linux/} if host_os !~ /linux/ + add_filter %r{/os/mac} if host_os !~ /darwin/ + add_filter %r{/os/linux} if host_os !~ /linux/ # Add groups and the proper project name to the output. project_name "Homebrew" diff --git a/Library/Homebrew/test/.codecov.yml b/Library/Homebrew/test/.codecov.yml index 9c75dfe6a0..7ab7a77c6f 100644 --- a/Library/Homebrew/test/.codecov.yml +++ b/Library/Homebrew/test/.codecov.yml @@ -1,4 +1,8 @@ comment: off - fixes: - "::Library/Homebrew/" +coverage: + status: + project: + default: + threshold: 0.1