ci: do coverage reporting only from first matrix job
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
1a5bba72da
commit
292400034c
1 changed files with 20 additions and 8 deletions
|
@ -72,10 +72,16 @@ build:
|
|||
- mkdir -p shippable/testresults
|
||||
- mkdir -p shippable/codecoverage
|
||||
- source zephyr-env.sh
|
||||
- gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml
|
||||
- mv sanity-out/native_posix/ coverage_native_posix/
|
||||
- rm -rf sanity-out out-2nd-pass
|
||||
- bash <(curl -s https://codecov.io/bash) -f '!*.lst' -X coveragepy -X fixes
|
||||
- >
|
||||
if [ "$MATRIX_BUILD" = "1" ]; then
|
||||
gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml;
|
||||
mv sanity-out/native_posix/ coverage_native_posix/;
|
||||
rm -rf sanity-out out-2nd-pass;
|
||||
bash <(curl -s https://codecov.io/bash) -f '!*.lst' -X coveragepy -X fixes;
|
||||
rm -rf coverage_native_posix/;
|
||||
else
|
||||
rm -rf sanity-out out-2nd-pass;
|
||||
fi;
|
||||
- >
|
||||
if [ -e compliance.xml ]; then
|
||||
cp compliance.xml shippable/testresults/;
|
||||
|
@ -89,10 +95,16 @@ build:
|
|||
- mkdir -p shippable/testresults
|
||||
- mkdir -p shippable/codecoverage
|
||||
- source zephyr-env.sh
|
||||
- gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml
|
||||
- mv sanity-out/native_posix/ coverage_native_posix/
|
||||
- rm -rf sanity-out out-2nd-pass
|
||||
- bash <(curl -s https://codecov.io/bash) -f '!*.lst' -X coveragepy -X fixes
|
||||
- >
|
||||
if [ "$MATRIX_BUILD" = "1" ]; then
|
||||
gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml;
|
||||
mv sanity-out/native_posix/ coverage_native_posix/;
|
||||
rm -rf sanity-out out-2nd-pass;
|
||||
bash <(curl -s https://codecov.io/bash) -f '!*.lst' -X coveragepy -X fixes;
|
||||
rm -rf coverage_native_posix/;
|
||||
else
|
||||
rm -rf sanity-out out-2nd-pass;
|
||||
fi;
|
||||
- >
|
||||
if [ -e compliance.xml ]; then
|
||||
cp compliance.xml shippable/testresults/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue