From 4000e0382d598316ab296897003bd4ed9e8854c3 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand <olivier.bertrand@uni-bielefeld.de> Date: Thu, 3 May 2018 22:29:26 +0200 Subject: [PATCH] Update .gitlab-ci.yml Add coverage --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 596b6b4..7558131 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,9 +6,9 @@ before_script: - python3 -V # Print out python version for debugging stages: - - deploy - build - test + - deploy navipy_install: @@ -28,6 +28,17 @@ navipy_unittest: - pip3 install --user networkx - python3 -m unittest discover navipy +coverage: + stage: test + script: + - nosetests -c .noserc -q --cover-html-dir=build --cover-html + - coverage report -m + coverage: '/TOTAL.+ ([0-9]{1,3}%)/' + artifacts: + paths: + - build + expire_in: 1 day + doc_build: stage: deploy before_script: -- GitLab