-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
58 lines (53 loc) · 940 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
image: python
py27:
image: python:2.7
stage: build
script:
- pip install tox
- tox -e py27,flake8
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
py35:
image: python:3.5
stage: build
script:
- pip install tox
- tox -e py35,flake8
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
py36:
image: python:3.6
stage: build
script:
- pip install tox
- tox -e py36,flake8
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
py37:
image: python:3.7
stage: build
script:
- pip install tox
- tox -e py37,flake8
artifacts:
paths:
- .coverage*
expire_in: 5 minutes
coverage:
stage: test
script:
- pip install coverage
- python -m coverage combine
- python -m coverage html
- python -m coverage report
coverage: '/TOTAL.*\s+(\d+\.\d+%)$/'
artifacts:
paths:
- htmlcov
expire_in: 1 week