mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[CI] Exclude non-coverage files from codecov upload (#1495)
* [CI] Exclude non-coverage files from codecov upload * Ignore React serviceWorker.ts for coverage As we do not utilise service workers in React gives more accurate coverage percentages when ignored.
This commit is contained in:
parent
d890e7d751
commit
b0fbf2c4cc
|
@ -16,7 +16,10 @@ if [[ ! $BUILDKITE_BRANCH =~ ^(v.*) ]] && [[ $BUILDKITE_COMMAND_EXIT_STATUS == 0
|
|||
BUILDKITE_AGENT_META_DATA_CODECOV="-v"
|
||||
fi
|
||||
bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -Z -c -f "coverage.txt" -F backend ${BUILDKITE_AGENT_META_DATA_CODECOV}
|
||||
bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -Z -c -F frontend ${BUILDKITE_AGENT_META_DATA_CODECOV}
|
||||
if [[ $BUILDKITE_LABEL =~ ":selenium:" ]]; then
|
||||
cd web && yarn report
|
||||
fi
|
||||
bash <(curl -s --connect-timeout 10 --retry 10 --retry-max-time 0 https://codecov.io/bash) -Z -c -f '!*.go' -f '!*.zst' -F frontend ${BUILDKITE_AGENT_META_DATA_CODECOV}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -32,6 +32,9 @@ flags:
|
|||
paths:
|
||||
- "web/"
|
||||
|
||||
ignore:
|
||||
- "web/src/serviceWorker.ts"
|
||||
|
||||
parsers:
|
||||
gcov:
|
||||
branch_detection:
|
||||
|
|
Loading…
Reference in New Issue
Block a user