]> kaliko git repositories - sid.git/blob - .gitlab-ci.yml
Bump version
[sid.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 build:
11   stage: build
12   script:
13   # packaging test
14   - python setup.py bdist_wheel sdist
15   - pip install dist/*
16   artifacts:
17     expire_in: 1 week
18     paths:
19     - dist/*.whl
20     - dist/*.tar.*
21   only:
22     - pushes
23
24 tag_release:
25   stage: build
26   script:
27   - python setup.py bdist_wheel sdist
28   artifacts:
29     paths:
30     - dist/*.whl
31     - dist/*.tar.*
32     name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
33   only:
34     - tags
35
36 pages:
37   stage: build
38   script:
39   - pip install sphinx sphinx_rtd_theme slixmpp feedparser python-debianbts
40   - sphinx-build -d ./build/doctrees doc/source -b html ./public -D html_theme=sphinx_rtd_theme
41   artifacts:
42     paths:
43     - public
44   only:
45   - master
46   - ci