summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2021-09-21 10:21:04 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-27 23:01:05 +0000
commitb6b9720eb46256ff3870f4fd9f74c2163ac64df9 (patch)
tree4d64343b2fda53e9967f994e8c035562777e5ce3
parent8c8b62f6cb1b469a2c21898941a60f6364686762 (diff)
downloadchrome-ec-b6b9720eb46256ff3870f4fd9f74c2163ac64df9.tar.gz
gitlab: Generate coverage report for herobrine
As part of the coverage artifacts, build a report for herobrine w/o zephyr code. BUG=None BRANCH=None TEST=Ran cmds in docker Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I7b1291d4d447769487870fc701a8452aeaffa649 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3173097 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--.gitlab-ci.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b857ef64fe..8980ad35ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -135,11 +135,15 @@ coverage:
CROSS_COMPILE_arm=/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-
coverage
- lcov -o build/merged.info -a build/coverage/lcov.info -a build/zcoverage/lcov.info
+ - lcov -o build/merged_no_zephyr.info -r build/merged.info '/home/uboot/zephyr26/*' '/home/uboot/modules/*' '/usr/include/x86_64-linux-gnu/*'
+ - grep SF: build/zcoverage/projects_herobrine_herobrine_npcx9.info | sort -u | sed -e 's|^SF:||' | xargs lcov -o build/merged_no_zephyr_herobrine_npcx9.info -e build/merged_no_zephyr.info
+ - /usr/bin/genhtml -q -o build/merged_no_zephyr_herobrine_npcx9_rpt -t "Herobrine npcx9 coverage w/o zephyr" -p /builds/zephyr-ec/ec -s build/merged_no_zephyr_herobrine_npcx9.info
artifacts:
paths:
- build/zcoverage/coverage_rpt/*
- build/coverage/coverage_rpt/*
- - build/merged.info
+ - build/*.info
+ - build/*_rpt
expire_in: 1 week
testall: