|
@@ -1,10 +1,3 @@
|
|
|
-codecov:
|
|
|
- notify:
|
|
|
- # The minimum amount of codecov reporting checks that need to complete
|
|
|
- # For FE we have 5 checks and for BE we have 11
|
|
|
- # TODO: Remove this when we have support of after_n_builds per flag
|
|
|
- after_n_builds: 5
|
|
|
-
|
|
|
# Setting coverage targets per flag
|
|
|
coverage:
|
|
|
status:
|
|
@@ -15,16 +8,14 @@ coverage:
|
|
|
frontend:
|
|
|
# codecov will not fail status checks for master
|
|
|
only_pulls: true
|
|
|
- # This will be needed until codecov supports after_n_builds for flags
|
|
|
- informational: true # Do not fail the check
|
|
|
+ informational: false # Fail the check
|
|
|
target: 60%
|
|
|
flags:
|
|
|
- frontend
|
|
|
backend:
|
|
|
# codecov will not fail status checks for master
|
|
|
only_pulls: true
|
|
|
- # This will be needed until codecov supports after_n_builds for flags
|
|
|
- informational: true # Do not fail the check
|
|
|
+ informational: false # Fail the check
|
|
|
target: 90%
|
|
|
flags:
|
|
|
- backend
|
|
@@ -59,10 +50,15 @@ flags:
|
|
|
paths:
|
|
|
- "static/app/"
|
|
|
carryforward: true
|
|
|
+ # FE uploads 5 coverage reports. This property ensures codecov waits
|
|
|
+ # for all reports to be uploaded before creating a GitHub status check.
|
|
|
+ after_n_builds: 5
|
|
|
backend:
|
|
|
paths:
|
|
|
- "src/sentry/**/*.py"
|
|
|
carryforward: true
|
|
|
+ # Do not send any status checks until N coverage reports are uploaded
|
|
|
+ after_n_builds: 11
|
|
|
|
|
|
# Read more here: https://docs.codecov.com/docs/pull-request-comments
|
|
|
comment:
|