[Git][reproducible-builds/diffoscope][master] Integrate test coverage with GitLab's concept of artifacts.

Chris Lamb (@lamby) gitlab at salsa.debian.org
Mon May 30 09:47:26 UTC 2022



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
7d050b44 by Chris Lamb at 2022-05-30T10:46:04+01:00
Integrate test coverage with GitLab's concept of artifacts.

Re. https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html

Some of the more advanced stuff might require GitLab EE... we'll see.

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -13,7 +13,15 @@ stages:
     - apt-get -q -y --solver aspcud -o APT::Solver::Strict-Pinning=0
         -o Debug::pkgProblemResolver=yes build-dep .
     - apt-get -q -y install --no-install-recommends radare2 || true
-    - py.test-3 -vv -l -r a --cov=diffoscope --cov-report=term-missing
+    - py.test-3 -vv -l -r a --cov=diffoscope --cov-report=term-missing --cov-report xml --cov-report html
+  artifacts:
+    paths:
+      - htmlcov/*
+    coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
+    reports:
+      coverage_report:
+        coverage_format: cobertura
+        path: coverage.xml
 
 unstable:
   <<: *test



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/7d050b441d25838e24b45fe780a9669c03a01e78

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/7d050b441d25838e24b45fe780a9669c03a01e78
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20220530/62b73144/attachment.htm>


More information about the rb-commits mailing list