From 292400034caf09254aed864b5a3f34f64b75da52 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 5 Jan 2018 08:28:23 -0500 Subject: [PATCH] ci: do coverage reporting only from first matrix job Signed-off-by: Anas Nashif --- .shippable.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.shippable.yml b/.shippable.yml index d9942ec3112..d850ffbe5b9 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -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/;