summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2021-08-25 11:02:15 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-03 17:16:14 +0000
commit654728dece4a9d48621dd33fca906edac608b2ec (patch)
tree6973cde990d7632c4ee853161b4985af595e2eec /.gitlab-ci.yml
parent5d10d9e0638216f4b298509f26bcef85fcd44eb7 (diff)
downloadchrome-ec-654728dece4a9d48621dd33fca906edac608b2ec.tar.gz
gitlab: Build coverage report in gitlab
Added new coverage job to gitlab. BUG=None TEST=Pushed to gitlab coverage branch BRANCH=None Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I2dd20ee94934b71426e00e8d45b2670f106048ae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3119210 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cd0133deb2..001c8f9719 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-image: sjg20/bionic-20200526-30jul21
+image: jbettis/bionic-20200807-27aug21
# You can update that image using this repo:
# https://gitlab.com/zephyr-ec/gitlab-ci-runner/-/tree/main
@@ -104,3 +104,16 @@ volteer:
PROJECT_SUBDIR: "volteer/"
VERSION: 26
<<: *build_template
+
+coverage:
+ stage: test
+ script:
+ - zmake --zephyr-base "${ZEPHYR_BASE}26"
+ --modules-dir "${MODULES_DIR}" -l DEBUG coverage
+ "${BUILD_DIR}/coverage"
+ - ls "${BUILD_DIR}/coverage" "${BUILD_DIR}/coverage/coverage_rpt"
+ artifacts:
+ paths:
+ - build/coverage/*
+ expire_in: 1 week
+