forked from Ekumen-OS/beluga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codecov.yml
78 lines (67 loc) · 2.21 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
codecov:
# Don't wait for all other statuses to pass before sending codecov status.
require_ci_to_pass: no
# Disable pull request comments.
comment: false
# Use filters to classify coverage data by package.
component_management:
# Rules inherited by all components.
default_rules:
statuses:
- type: project # Measure overall project coverage.
# The minimum coverage ratio to send a success status.
target: 95%
# If the patch coverage is 100% and there are no unexpected changes,
# pass the project status.
removed_code_behavior: fully_covered_patch
- type: patch # Measure lines adjusted in the pull request.
# The minimum coverage ratio to send a success status is the base
# commit coverage (pull request base or parent commit).
target: auto
# Allow the coverage to drop by this percentage.
threshold: 1%
# Only post patch status to pull requests.
only_pulls: true
individual_components:
- component_id: package_beluga
name: beluga
paths:
- beluga/**
- component_id: package_beluga_amcl
name: beluga_amcl
paths:
- beluga_amcl/**
- component_id: package_beluga_ros
name: beluga_ros
paths:
- beluga_ros/**
statuses:
# Beluga ROS has its own statutes since it currently has lower coverage.
# See `default_rules` for details.
- type: project
target: 90%
removed_code_behavior: fully_coverred_patch
- type: patch
target: auto
threshold: 1%
only_pulls: true
coverage:
# Disable project and patch level coverage status check in favor of
# individual component status checks.
status:
project: off
patch: off
# Fixes to correctly map coverage information in our uploaded report
# to the corresponding files in the repository.
fixes:
- "src/beluga/::" # "src/beluga/path/" => "path/"
github_checks:
# Disable GitHub line-by-line annotations.
annotations: false
# Exclude test and benchmark directories from code coverage reports.
ignore:
- "beluga/test"
- "beluga_amcl/test"
- "beluga_ros/test"
- "beluga_system_tests/test"
- "beluga_tools/test"