]> kaliko git repositories - mpd-sima.git/blobdiff - .gitlab-ci.yml
Fixed code coverage report (Closes #66)
[mpd-sima.git] / .gitlab-ci.yml
index 639d773bb666c69e5c6405c5dc8037db1061082a..b76ca1788fd9c9e5b73d05a0662d5b0208a1f72d 100644 (file)
@@ -22,26 +22,34 @@ stages:
 smoketest:
   stage: test
   script:
-  - pip install requests
+  - pip install requests python-musicpd sphinx
   - python setup.py test
   # build wheel and source
   - python setup.py bdist_wheel sdist
+  # manual and HTML documentation
+  - python setup.py build_sphinx
   # install
   - pip install dist/*.whl
   # smoke test
   - mpd-sima --help
+  - TRACE=y ./mpd-sima -d --pid ./mpd-sima.pid -l ./mpd-sima.log
+  - sleep 10
+  - test -f ./mpd-sima.pid && kill $(cat ./mpd-sima.pid)
   artifacts:
     expire_in: 1 hour
     paths:
     - dist/*.whl
     - dist/*.tar.gz
     - dist/*.zip
+    - ./mpd-sima.pid
+    - ./mpd-sima.log
 
 unittests:
   stage: test
   script:
-  - pip install pytest-cov requests
+  - pip install pytest-cov requests python-musicpd
   - py.test -q --cov=sima --junitxml=report.xml tests
+  coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
   artifacts:
     when: always
     reports: