-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
68 lines (59 loc) · 995 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
image: python:3.7
stages:
- test
- quality
- misc
- deploy
before_script:
- pip install tox
tests:
stage: test
script: SHELL=$SHELL tox -e py37
artifacts:
paths:
- $CI_PROJECT_DIR/htmlcov
reports:
junit: report*.xml
coverage: '/^TOTAL(?:\s+\d+){4}\s+(\d+\%)$/'
lint:
stage: quality
script: tox -e lint
formatting:
stage: quality
script: tox -e formatting
py36:
stage: misc
image: python:3.6
script: tox -e 36
when: manual
docs:
stage: misc
dependencies:
- tests
script:
- mkdir -p docs/_static/coverage
- cp -r $CI_PROJECT_DIR/htmlcov/* docs/_static/coverage/
- tox -e docs
artifacts:
paths:
- html_docs
pages:
stage: deploy
dependencies:
- docs
script:
- cp -r html_docs public
artifacts:
paths:
- public
only:
- master
push_to_github:
before_script: []
stage: deploy
dependencies:
- docs
script: make publish_to_github
only:
- web
when: manual