Tweak code coverage logic

- 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.
This commit is contained in:
Mike McQuaid 2018-07-26 10:09:02 +01:00
parent 8a0edc7389
commit afec4e2988
2 changed files with 7 additions and 3 deletions

View File

@ -50,8 +50,8 @@ SimpleCov.start do
require "rbconfig" require "rbconfig"
host_os = RbConfig::CONFIG["host_os"] host_os = RbConfig::CONFIG["host_os"]
add_filter %r{^/os/mac/} if host_os !~ /darwin/ add_filter %r{/os/mac} if host_os !~ /darwin/
add_filter %r{^/os/linux/} if host_os !~ /linux/ add_filter %r{/os/linux} if host_os !~ /linux/
# Add groups and the proper project name to the output. # Add groups and the proper project name to the output.
project_name "Homebrew" project_name "Homebrew"

View File

@ -1,4 +1,8 @@
comment: off comment: off
fixes: fixes:
- "::Library/Homebrew/" - "::Library/Homebrew/"
coverage:
status:
project:
default:
threshold: 0.1