-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
81 lines (66 loc) · 1.37 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
79
80
81
stages:
- build
- test
- deploy
- documentation
test:
stage: test
script:
- env PYTHONPATH=. pytest-3 -v .
style check:
stage: test
script:
- pycodestyle
allow_failure: true
type check:
stage: test
script:
- mypy --package ${CI_PROJECT_NAME//-/.}
allow_failure: true
create deb package:
stage: deploy
only:
- tags
script:
- python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=False --with-python3=True bdist_deb
artifacts:
paths:
- deb_dist/python3-${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME:1}-1_all.deb
create wheel package:
stage: deploy
only:
- tags
script:
- pip3 wheel .
artifacts:
paths:
- '${CI_PROJECT_NAME//-/_}-${CI_COMMIT_REF_NAME:1}-py3-none-any.whl'
create tarball:
stage: deploy
only:
- tags
script:
- git archive --format=tar.gz ${CI_COMMIT_REF_NAME} --prefix=${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME:1}/ --output ${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME:1}.tar.gz
artifacts:
paths:
- ${CI_PROJECT_NAME}-${CI_COMMIT_REF_NAME:1}.tar.gz
create html documentation:
stage: documentation
only:
- tags
script:
- cd docs
- make html
artifacts:
paths:
- docs/build/html/
create man pages:
stage: documentation
only:
- tags
script:
- cd docs
- make man
artifacts:
paths:
- docs/build/man/