]> kaliko git repositories - mpd-sima.git/blob - .gitlab-ci.yml
ci: Add vinstall test
[mpd-sima.git] / .gitlab-ci.yml
1 # Official language image. Look for the different tagged releases at:
2 # https://hub.docker.com/r/library/python/
3 image: python:3
4
5 variables:
6   #XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
7   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
8
9 cache:
10   paths:
11     - .cache
12
13 stages:
14   - test
15   - build
16
17 smoketest:
18   stage: test
19   script:
20   - pip install pytest-cov requests
21   - py.test -q --cov=sima tests
22   - python setup.py test
23   # build wheel and source
24   - python setup.py bdist_wheel sdist
25   # install
26   - pip install dist/*.whl
27   # smoke test
28   - mpd-sima --help
29   artifacts:
30     expire_in: 1 hour
31     paths:
32     - dist/*.whl
33     - dist/*.tar.gz
34     - dist/*.zip
35
36 vinstall:
37   stage: test
38   script:
39   # test virtualenv install
40   - python3 ./vinstall.py
41   # smoke test
42   - ./vmpd-sima --help
43   artifacts:
44     expire_in: 1 hour
45
46 tag_release:
47   stage: build
48   dependencies:
49     - smoketest
50   script:
51     - python -V
52   artifacts:
53     paths:
54     - dist/*.whl
55     - dist/*.tar.gz
56     - dist/*.zip
57     name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
58   cache: {}
59   only:
60     - tags