]> kaliko git repositories - mpd-sima.git/blobdiff - .gitlab-ci.yml
Update manual
[mpd-sima.git] / .gitlab-ci.yml
index 2b204856a82e75e18f958ad4a77a79dbf774077a..3bd74453b6319b76cf4da936777051a311a1ed43 100644 (file)
@@ -1,7 +1,11 @@
 # Official language image. Look for the different tagged releases at:
-# https://hub.docker.com/r/library/python/
+# https://hub.docker.com/_/python
 image: python:3
 
+include:
+  - local: .gitlab/gitlab-templates.yml
+  - local: .gitlab/pylint.yml
+
 variables:
   #XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
@@ -14,11 +18,10 @@ stages:
   - test
   - build
 
-test:
+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
@@ -33,10 +36,30 @@ test:
     - 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:
+  # test virtualenv install
+  - python3 ./vinstall.py
+  # smoke test
+  - ./vmpd-sima --help
+  artifacts:
+    expire_in: 1 hour
+
 tag_release:
   stage: build
   dependencies:
-    - test
+    - smoketest
   script:
     - python -V
   artifacts: