# 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
variables:
- test
- build
-test:
+smoketest:
stage: test
script:
- pip install pytest-cov requests
- dist/*.tar.gz
- dist/*.zip
+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: