]> kaliko git repositories - mpd-sima.git/blob - .gitlab-ci.yml
Bump version
[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 test:
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 tag_release:
37   stage: build
38   dependencies:
39     - test
40   script:
41     - python -V
42   artifacts:
43     paths:
44     - dist/*.whl
45     - dist/*.tar.gz
46     - dist/*.zip
47     name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
48   cache: {}
49   only:
50     - tags