summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-02-17 15:23:49 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-02-17 17:45:24 +0100
commitaf7aa11acebd9a34e6aee41dc77c0d7c3000fd47 (patch)
treecdd28f26278e4edceb94961d33208e98e05bdf27 /.gitlab-ci.yml
parent8df9570b7f25ceaaa590c8da33952a7bdeade203 (diff)
downloadpygobject-af7aa11acebd9a34e6aee41dc77c0d7c3000fd47.tar.gz
gitlab-ci: Add coverage reports
Use gcov/lcov and coverage.py; merge all results and provide the final html reports as job artifacts.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aae4170f..4f426e93 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,10 @@ services:
image: lazka/pygobject:pyenv
+stages:
+ - build_and_test
+ - coverage
+
before_script:
- mkdir -p _ccache
- export CCACHE_BASEDIR=${PWD}
@@ -13,9 +17,23 @@ cache:
- _ccache/
.defaults: &defaults
+ stage: build_and_test
+ artifacts:
+ paths:
+ - coverage/
script:
- bash -x ./.gitlab-ci/test-docker.sh
+coverage:
+ stage: coverage
+ artifacts:
+ paths:
+ - coverage/
+ variables:
+ PYENV_VERSION: "3.6.4"
+ script:
+ - bash -x ./.gitlab-ci/coverage-docker.sh
+
python2.7:
variables:
PYENV_VERSION: "2.7.14"