Skip to content

Commit 1612176

Browse files
authored
Merge pull request #489 from qiniu/codecov
target
2 parents f569d3a + ce8b172 commit 1612176

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

codecov.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
coverage:
2-
precision: 2
3-
round: down
4-
status:
5-
patch:
6-
default:
7-
target: 80%
8-
project:
9-
default:
10-
target: 80%
1+
codecov:
2+
ci:
3+
- prow.qiniu.io # prow 里面运行需添加,其他 CI 不要
4+
require_ci_to_pass: no # 改为 no,否则 codecov 会等待其他 GitHub 上所有 CI 通过才会留言。
5+
6+
github_checks: #关闭github checks
7+
annotations: false
118

129
comment:
13-
layout: "header, diff, uncovered, files"
14-
behavior: default
10+
layout: "reach, diff, flags, files"
11+
behavior: new # 默认是更新旧留言,改为 new,删除旧的,增加新的。
12+
require_changes: false # if true: only post the comment if coverage changes
13+
require_base: no # [yes :: must have a base report to post]
14+
require_head: yes # [yes :: must have a head report to post]
15+
branches: # branch names that can post comment
16+
- "master"
17+
18+
coverage:
19+
status: # 评判 pr 通过的标准
20+
patch: off
21+
project: # project 统计所有代码x
22+
default:
23+
# basic
24+
target: 70% # 总体通过标准
25+
threshold: 3% # 允许单次下降的幅度
26+
base: auto
27+
if_not_found: success
28+
if_ci_failed: error

0 commit comments

Comments
 (0)