-
Notifications
You must be signed in to change notification settings - Fork 287
/
.codecov.yml
92 lines (84 loc) · 2.3 KB
/
.codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
codecov:
notify:
require_ci_to_pass: yes
coverage:
precision: 4
round: down
status:
project:
default:
threshold: 3 #Allow the coverage to drop by threshold%, and posting a success status.
patch:
default:
target: 0%
changes: no
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
comment:
layout: "header, components, flags, diff"
behavior: default
require_changes: no
ignore:
- "LICENSES"
- "*_test.go"
- "*.pb.go"
- ".git"
- "*.yaml"
- "*.toml"
- "*.md"
- "docs/.*"
- "testing_utils/.*"
- "mock/.*"
- "*_mock.go"
component_management:
default_rules: # default rules that will be inherited by all components
statuses:
- type: project # in this case every component that doens't have a status defined will have a project type one
target: auto
informational: true # resulting status will pass no matter what the coverage is or what other settings are specified.
individual_components:
- component_id: component_cdc # this is an identifier that should not be changed
name: cdc # this is a display name, and can be changed freely
paths:
- cdc/**
- cmd/**
- pkg/**
- component_id: component_dm
name: dm
paths:
- dm/**
- component_id: component_engine
name: engine
paths:
- engine/**
# more components.
flag_management:
default_rules: # the rules that will be followed for any flag added, generally
carryforward: true
statuses:
- type: project
target: 60%
informational: true # resulting status will pass no matter what the coverage is or what other settings are specified.
- type: patch
target: 60%
informational: true # resulting status will pass no matter what the coverage is or what other settings are specified.
individual_flags: # exceptions to the default rules above, stated flag by flag
- name: cdc #fill in your own flag name
paths:
- cdc/** #fill in your own path. Note, accepts globs, not regexes
- cmd/**
- pkg/**
carryforward: true
- name: dm
paths:
- dm/**
carryforward: true
- name: engine
paths:
- engine/**
carryforward: true