]> kaliko git repositories - mpd-sima.git/commitdiff
ci: Exposes unittest report to gitlab
authorkaliko <kaliko@azylum.org>
Wed, 5 May 2021 11:55:27 +0000 (13:55 +0200)
committerkaliko <kaliko@azylum.org>
Wed, 5 May 2021 14:38:07 +0000 (16:38 +0200)
.gitlab-ci.yml

index 9a39e1364c31a060204e4d5b3ec30eff895c7922..3bd74453b6319b76cf4da936777051a311a1ed43 100644 (file)
@@ -21,8 +21,7 @@ stages:
 smoketest:
   stage: test
   script:
-  - pip install pytest-cov requests
-  - py.test -q --cov=sima tests
+  - pip install requests
   - python setup.py test
   # build wheel and source
   - python setup.py bdist_wheel sdist
@@ -37,6 +36,16 @@ smoketest:
     - dist/*.tar.gz
     - dist/*.zip
 
+unittests:
+  stage: test
+  script:
+  - pip install pytest-cov requests
+  - py.test -q --cov=sima --junitxml=report.xml tests
+  artifacts:
+    when: always
+    reports:
+      junit: report.xml
+
 vinstall:
   stage: test
   script: