aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2021-07-18 20:32:13 +0200
committergabrielgio <gabriel.giovanini@pm.me>2021-07-18 20:32:13 +0200
commitcd63440c280dcba5d02fee0f174464581f6c7fb9 (patch)
tree549496944df5da76e665d28c24217e225c115402 /.gitlab-ci.yml
parent1f3e0496079ec2e57842b3abb7aea1630bf47f9e (diff)
downloadreddit-nextcloud-importer-cd63440c280dcba5d02fee0f174464581f6c7fb9.tar.gz
reddit-nextcloud-importer-cd63440c280dcba5d02fee0f174464581f6c7fb9.tar.bz2
reddit-nextcloud-importer-cd63440c280dcba5d02fee0f174464581f6c7fb9.zip
ref: Move to ptest-cov
Instead of using `coverage` which is not supported in the gitlab ce I'll be using `pytest-cov` to report a proper coverage in the job panel. Reference: https://docs.gitlab.com/ee/ci/pipelines/settings.html#test-coverage-parsing https://www.cypress.io/blog/2019/10/22/show-code-coverage-on-gitlab-ci/
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 1 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a951333..c2c8eb4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,18 +38,8 @@ test:
stage: test
script:
- pip install -r dev-requirements.txt
- - pytest -n 4 --junitxml=report.xml
+ - pytest -n 4 --junitxml=report.xml --cov=importer
artifacts:
reports:
junit: report.xml
-coverage:
- image: python:3-alpine
- stage: test
- script:
- - pip install -r dev-requirements.txt
- - coverage run -m pytest
- - coverage xml -o cobertura.xml
- artifacts:
- reports:
- cobertura: cobertura.xml