summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfriedli2021-06-13 11:15:14 +0000
committerjfriedli2021-06-13 11:15:14 +0000
commit18604650d0fb90f1c884411e6f6b223ebca81e4a (patch)
tree341b1446e903c5d0b47a288e9abae54e247b4b1d
parent419a95fba7b37df7be9a2118e6051aa0c8620371 (diff)
create coverage report visualization artifact for gitlab
-rw-r--r--.gitlab-ci.yml16
1 files 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:
38 before_script: 38 before_script:
39 - apt update 39 - apt update
40 script: 40 script:
41 - apt-get -qqy update 41 - apt-get -qqy update
42 - apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage python3-pip python3-setuptools 42 - apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage python3-pip python3-setuptools
43 - pip3 install wheel 43 - pip3 install wheel
44 - pip3 install -r requirements.txt -r requirements-test.txt 44 - pip3 install -r requirements.txt -r requirements-test.txt
45 - python3-coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test 45 - python3-coverage run --branch --include main.py,matweb/*.py -m unittest discover -s test
46 - python3-coverage report -m 46 - python3-coverage report -m
47 - python3-coverage xml
48 artifacts:
49 reports:
50 cobertura: coverage.xml
47 51
48build-docker: 52build-docker:
49 stage: build_container 53 stage: build_container