[pygobject] gitlab-ci: publish coverage reports to gitlab pages
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] gitlab-ci: publish coverage reports to gitlab pages
- Date: Sat, 7 Apr 2018 17:04:36 +0000 (UTC)
commit 231827a32c2d03658f2977a21a07bb75a29b7a1d
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sat Apr 7 19:03:31 2018 +0200
gitlab-ci: publish coverage reports to gitlab pages
.gitlab-ci.yml | 14 ++++++++++++++
.gitlab-ci/coverage-docker.sh | 11 +++++++++++
2 files changed, 25 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 15e0b359..fa6989a4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,6 +37,20 @@ coverage:
script:
- bash -x ./.gitlab-ci/coverage-docker.sh
+pages:
+ stage: coverage
+ image: lazka/pygobject:v3
+ dependencies:
+ - coverage
+ script:
+ - mv coverage/ public/
+ artifacts:
+ paths:
+ - public
+ expire_in: 30 days
+ only:
+ - master
+
python2-mingw32:
variables:
PYTHON: "python2"
diff --git a/.gitlab-ci/coverage-docker.sh b/.gitlab-ci/coverage-docker.sh
index 67c07203..e36573df 100755
--- a/.gitlab-ci/coverage-docker.sh
+++ b/.gitlab-ci/coverage-docker.sh
@@ -24,3 +24,14 @@ rm -f *.lcov
ln -s report-python/index.html index-python.html
ln -s report-c/index.html index-c.html
+
+cat >index.html <<EOL
+<html>
+<body>
+<ul>
+<li><a href="report-python/index.html">C Coverage</a></li>
+<li><a href="report-c/index.html">Python Coverage</a></li>
+</ul>
+</body>
+</html>
+EOL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]