-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
60 lines (52 loc) · 1.16 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
image: docker.km3net.de/base/python:3
stages:
- test
- coverage
- doc
before_script:
- make install-dev
test-py3.6:
image: docker.km3net.de/base/python:3.6
stage: test
script:
- make test
test-py3.7:
image: docker.km3net.de/base/python:3.7
stage: test
script:
- make test
test-py3.8:
image: docker.km3net.de/base/python:3.8
stage: test
script:
- make test
code-style:
image: docker.km3net.de/base/python:3.7
stage: test
script:
- yapf -r -d -e "venv" .
allow_failure: true
coverage:
image: docker.km3net.de/base/python:3.6
stage: coverage
script:
- "make test-cov|grep TOTAL| awk '{printf \"COVERAGE: %.2f%%\", (1-$3/$2)*100 }'"
coverage: '/COVERAGE:\s*([0-9]*\.[0-9]*%)/'
artifacts:
paths:
- reports/coverage
pages:
image: docker.km3net.de/base/python:3.6
stage: doc
script:
- cd doc && make clean && cd ..
- make doc
- mv doc/_build/html public/
- mv reports/coverage public/coverage
artifacts:
paths:
- public
cache: {}
only:
- tags
- master