diff options
| author | jfriedli | 2021-06-13 11:15:14 +0000 |
|---|---|---|
| committer | jfriedli | 2021-06-13 11:15:14 +0000 |
| commit | 18604650d0fb90f1c884411e6f6b223ebca81e4a (patch) | |
| tree | 341b1446e903c5d0b47a288e9abae54e247b4b1d | |
| parent | 419a95fba7b37df7be9a2118e6051aa0c8620371 (diff) | |
create coverage report visualization artifact for gitlab
| -rw-r--r-- | .gitlab-ci.yml | 16 |
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 | ||
| 48 | build-docker: | 52 | build-docker: |
| 49 | stage: build_container | 53 | stage: build_container |
