Merge pull request #6150 from desktop/codecov-granularity

codecov granularity
This commit is contained in:
Brendan Forster 2018-11-20 13:06:51 -04:00 committed by GitHub
commit a3036a6cdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,3 @@
codecov:
# no notifications set up
notify:
require_ci_to_pass: yes
coverage:
precision: 1
round: nearest
@ -11,15 +6,29 @@ coverage:
status:
project:
default:
# compares coverage to the base branch
lib-git:
target: auto
# if it drops by 20%, send a fail status
threshold: 20%
# only send statuses for prs, not all commits
threshold: 5%
base: pr
# only include coverage in "app/src/" folder
paths: 'app/src/'
paths: 'app/src/lib/git'
lib-app:
target: auto
threshold: 5%
base: pr
paths:
- 'app/src/lib/stores'
- 'app/src/lib/dispatcher'
- 'app/src/lib/databases'
models:
target: auto
threshold: 5%
base: pr
paths: 'app/src/models'
ui-components:
target: auto
threshold: 5%
base: pr
paths: 'app/src/ui'
patch: no
changes: no