]> kaliko git repositories - sid.git/blob - .gitlab-ci.yml
Add gitlab ci
[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.gz
32     - dist/*.zip
33     name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
34   only:
35     - tags
36
37 pages:
38   stage: build
39   script:
40   - pip install sphinx sphinx_rtd_theme
41   - sphinx-build -d ./build/doctrees doc/source -b html ./public -D html_theme=sphinx_rtd_theme
42   artifacts:
43     paths:
44     - public
45   only:
46   - master
47   - dev