Newer
Older
image: docker.km3net.de/base/python:3
stages:
- test
- coverage
- doc
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
test-py2:
image: docker.km3net.de/base/python:2
stage: test
script:
- make test
test-py3.5:
image: docker.km3net.de/base/python:3.5
stage: test
script:
- make test
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
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 && make html
- mv _build/html ../public/
- cd .. && mv reports/coverage public/coverage
artifacts:
paths:
- public
cache: {}
only:
- tags
- master