ci: do coverage reporting only from first matrix job

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-01-05 08:28:23 -05:00 committed by Anas Nashif
commit 292400034c

View file

@ -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/;