mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-27 05:37:15 -05:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
codecov:
|
|
require_ci_to_pass: false
|
|
# Wait for all coverage uploads (4 server shards + 1 webapp) before
|
|
# computing status. Without this, Codecov may report partial coverage
|
|
# from the first shard to finish, showing a misleading drop on the PR.
|
|
notify:
|
|
after_n_builds: 5
|
|
|
|
coverage:
|
|
status:
|
|
project:
|
|
default:
|
|
target: auto
|
|
threshold: 1%
|
|
informational: true
|
|
patch:
|
|
default:
|
|
target: 50%
|
|
informational: true
|
|
|
|
# Exclude generated code, mocks, and test infrastructure from reporting.
|
|
# Go compiles these into the test binary, so they appear in cover.out,
|
|
# but they aren't production code and inflate the denominator.
|
|
ignore:
|
|
- "server/**/retrylayer/**"
|
|
- "server/**/timerlayer/**"
|
|
- "server/**/*_serial_gen.go"
|
|
- "server/**/mocks/**"
|
|
- "server/**/storetest/**"
|
|
- "server/**/plugintest/**"
|
|
- "server/**/searchtest/**"
|
|
|
|
flags:
|
|
server:
|
|
after_n_builds: 4 # 4 server test shards
|
|
webapp:
|
|
after_n_builds: 1 # 1 merged webapp upload
|
|
|
|
comment: false
|