gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
Add a convey plan to run coverage
3 weeks ago, Gary Kramlich
1db18410f383
Parents
bb301f12f418
Children
420126f48165
Add a convey plan to run coverage
Testing Done:
Ran the plan locally and checked its output. Also verified that the clean plan cleans it up.
Reviewed at https://reviews.imfreedom.org/r/3197/
1 files changed, 27 insertions(+), 1 deletions(-)
+27
-1
convey.yml
--- a/convey.yml Thu May 23 23:59:46 2024 -0500
+++ b/convey.yml Fri May 24 00:45:32 2024 -0500
@@ -5,6 +5,7 @@
- REGISTRY_USERNAME
- REGISTRY_PASSWORD
- DOCS_BUILD_IMAGE=${REGISTRY}/${REPOSITORY}:debian-trixie-amd64
+ - COVERAGE_IMAGE=${REGISTRY}/${REPOSITORY}:debian-trixie-amd64
tasks:
clean:
@@ -57,6 +58,25 @@
type: docker/logout
server: ${REGISTRY}
+ coverage-clean:
+ type: convey/clean
+ files:
+ - coverage
+ coverage-build:
+ type: docker/run
+ image: ${COVERAGE_IMAGE}
+ workdir: ${CONVEY_WORKSPACE}
+ shell: /bin/bash
+ script:
+ - set -ex
+ - meson setup build-coverage -Db_coverage=true -Dvapi=false
+ - ninja -C build-coverage turtles
+ - ninja -C build-coverage coverage
+ coverage-export:
+ type: docker/export
+ files:
+ - build-coverage/meson-logs/coveragereport:coverage
+
docs-clean:
type: convey/clean
files:
@@ -88,7 +108,9 @@
plans:
clean:
stages:
- - tasks: clean
+ - tasks:
+ - clean
+ - coverage-clean
alpine-edge-amd64:
environment: TARGET=alpine-edge-amd64
@@ -109,6 +131,10 @@
stages:
- tasks: [import, build]
+ coverage:
+ stages:
+ - tasks: [coverage-clean, import, coverage-build, coverage-export]
+
debian-trixie-amd64:
environment: TARGET=debian-trixie-amd64
stages: