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/testresults
- mkdir -p shippable/codecoverage - mkdir -p shippable/codecoverage
- source zephyr-env.sh - source zephyr-env.sh
- gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml - >
- mv sanity-out/native_posix/ coverage_native_posix/ if [ "$MATRIX_BUILD" = "1" ]; then
- rm -rf sanity-out out-2nd-pass gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml;
- bash <(curl -s https://codecov.io/bash) -f '!*.lst' -X coveragepy -X fixes 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 if [ -e compliance.xml ]; then
cp compliance.xml shippable/testresults/; cp compliance.xml shippable/testresults/;
@ -89,10 +95,16 @@ build:
- mkdir -p shippable/testresults - mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage - mkdir -p shippable/codecoverage
- source zephyr-env.sh - source zephyr-env.sh
- gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml - >
- mv sanity-out/native_posix/ coverage_native_posix/ if [ "$MATRIX_BUILD" = "1" ]; then
- rm -rf sanity-out out-2nd-pass gcovr -r ${ZEPHYR_BASE} -x > shippable/codecoverage/coverage.xml;
- bash <(curl -s https://codecov.io/bash) -f '!*.lst' -X coveragepy -X fixes 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 if [ -e compliance.xml ]; then
cp compliance.xml shippable/testresults/; cp compliance.xml shippable/testresults/;