-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
49 lines (45 loc) · 972 Bytes
/
.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
style:
script:
- python3 -V
- pip3 install -r requirements.dev.txt --user
- make style-check
unittest:
script:
- pip3 install -r requirements.dev.txt -r requirements.txt --user
- make test
artifacts:
paths:
- htmlcov
doc:
script:
- pip3 install -r requirements.dev.txt --user
- make doc
artifacts:
paths:
- docs/_build/html
only:
- master
pages:
stage: deploy
dependencies:
- unittest
- doc
script:
- mv docs/_build/html public
- mv htmlcov public/cov
artifacts:
paths:
- public
only:
- master
release:
stage: deploy
dependencies:
- unittest
- doc
script:
- make wheel
- devpi use "${DEVPI_URL}"
- devpi login "${DEVPI_LOGIN}" --password="${DEVPI_PASSWORD}" && devpi upload dist/*
only:
- tags