-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
78 lines (66 loc) · 1.68 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
stages:
- lint
- tests
- release
.test:template: &test_template
stage: tests
script:
- pip3 install tox
- pip3 install -e .
- tox -e ${PYTHON_VERSION}
python:test-3.5:
<<: *test_template
image: python:3.5
allow_failure: true
variables:
PYTHON_VERSION: py35
python:test-3.6:
<<: *test_template
image: python:3.6
variables:
PYTHON_VERSION: py36
python:test-3.7:
<<: *test_template
image: python:3.7
variables:
PYTHON_VERSION: py37
python:test-3.8:
<<: *test_template
image: python:3.8
variables:
PYTHON_VERSION: py38
python-lint:
stage: lint
image: python:3.6
script:
- pip3 install tox
- curl http://scm.mrs.antidot.net/general/antidhooks/raw/master/.flake8 -O
- curl http://scm.mrs.antidot.net/general/antidhooks/raw/master/.pylintrc -O
- curl http://scm.mrs.antidot.net/general/antidhooks/raw/master/.isort.cfg -O
- tox -e formatting
.release:template: &release_template
stage: release
image: python:3.6
script:
- pip3 install -U devpi-client pip wheel Sphinx
- devpi use --set-cfg ${DEVPI_INDEX}
- devpi login ${DEVPI_USER} --password ${DEVPI_PASSWD}
- devpi upload
- sphinx-apidoc --ext-autodoc --ext-intersphinx --ext-viewcode --ext-todo -f -o doc/source/api antidot/connector/html
- devpi upload --no-vcs --only-docs
# Release to stable index.
stable-release:
<<: *release_template
except:
- branches
only:
- tags
variables:
DEVPI_INDEX: http://pypi.mrs.antidot.net/antidot/stable
# Automatic pre-release to unstable index.
unstable-release:
<<: *release_template
variables:
DEVPI_INDEX: http://pypi.mrs.antidot.net/antidot/unstable
only:
- branches