From 18604650d0fb90f1c884411e6f6b223ebca81e4a Mon Sep 17 00:00:00 2001 From: jfriedli Date: Sun, 13 Jun 2021 11:15:14 +0000 Subject: [PATCH] create coverage report visualization artifact for gitlab --- .gitlab-ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b1b455..80db9a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,12 +38,16 @@ tests:debian: before_script: - apt update script: - - apt-get -qqy update - - apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage python3-pip python3-setuptools - - pip3 install wheel - - pip3 install -r requirements.txt -r requirements-test.txt - - python3-coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test - - python3-coverage report -m + - apt-get -qqy update + - apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage python3-pip python3-setuptools + - pip3 install wheel + - pip3 install -r requirements.txt -r requirements-test.txt + - python3-coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test + - python3-coverage report -m + - python3-coverage xml + artifacts: + reports: + cobertura: coverage.xml build-docker: stage: build_container