diff options
author | André Apitzsch <git@apitzsch.eu> | 2020-12-22 14:46:57 +0300 |
---|---|---|
committer | André Apitzsch <git@apitzsch.eu> | 2020-12-22 15:12:44 +0300 |
commit | 8b43342fdc758f7fff38ab678587818602aa9bae (patch) | |
tree | 11c694bef05da918e13b3d79ab83b87a4f70c984 | |
parent | 408cb93c31f8a971c1159918bd1d41db472c4c66 (diff) |
CI: Add test coverage
-rw-r--r-- | .gitlab-ci.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a950279..82f259e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,14 +8,23 @@ stages: run-test: stage: test script: - - python3 -m unittest discover -v - rm -rf civenv-nbxmpp - virtualenv -p python3 --system-site-packages civenv-nbxmpp - . ./civenv-nbxmpp/bin/activate - pip3 install -I pylint==2.4.4 + - pip3 install -I coverage + - pip3 install -I idna + - pip3 install -I precis-i18n - python3 -m pylint nbxmpp --disable=C0103,C0201,C0301,C0326,C0330,W0201,W0212,W0221,W0231,W0233,W0621,W0622,R0201,E1101,E1135 + - coverage run --source=nbxmpp -m unittest discover -v + - coverage report -mi + - coverage xml -i - deactivate - rm -rf civenv-nbxmpp + coverage: "/TOTAL.+ ([0-9]{1,3}%)/" + artifacts: + reports: + cobertura: coverage.xml # C0103 invalid-name # C0201 consider-iterating-dictionary |