]> kaliko git repositories - python-musicpd.git/blob - .gitlab-ci.yml
Releasing 0.9.0
[python-musicpd.git] / .gitlab-ci.yml
1 image: python:latest
2
3 before_script:
4   - python -V      # Print out python version for debugging
5
6 stages:
7   - test
8   - build
9
10 test:
11   stage: test
12   script:
13   - pip install pytest-cov docutils
14   - py.test -q --cov=musicpd test.py
15   - python setup.py check -r -s
16   coverage: '/musicpd.py\s+\d+\s+\d+\s+(\d+)%/'
17   only:
18     - pushes
19
20 build:
21   stage: build
22   script:
23   # packaging test
24   - python setup.py bdist_wheel sdist
25   - pip install dist/*
26   artifacts:
27     expire_in: 1 week
28     paths:
29     - dist/*.whl
30     - dist/*.tar.gz
31     - dist/*.zip
32   only:
33     - pushes
34
35 tag_release:
36   stage: build
37   script:
38   - python setup.py bdist_wheel sdist
39   artifacts:
40     paths:
41     - dist/*.whl
42     - dist/*.tar.gz
43     - dist/*.zip
44     name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
45   only:
46     - tags
47
48 pages:
49   stage: build
50   script:
51   - pip install sphinx sphinx_rtd_theme
52   - sphinx-build -d ./build/doctrees doc/source -b html ./public -D html_theme=sphinx_rtd_theme
53   artifacts:
54     paths:
55     - public
56   only:
57   - master