-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
63 lines (58 loc) · 1.12 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
61
62
63
stages:
- check
- broadcast
pytest-py36:
image: python:3.6
stage: check
script:
- export PYTHONPATH="${PYTHONPATH}:$(pwd)"
- pip install -r requirements.txt
- >
py.test
--cov-report term
--cov=pipper
.
pytest-py37:
image: python:3.7
stage: check
script:
- export PYTHONPATH="${PYTHONPATH}:$(pwd)"
- pip install -r requirements.txt
- pip install codecov coveralls codacy-coverage
- >
py.test
--cov-report xml:"$(pwd)/coverage.xml"
--cov-report term
--cov=pipper
.
artifacts:
paths:
- .coverage
- coverage.xml
expire_in: 1 day
pytest-py38:
image: python:3.8
stage: check
coverage: '/^TOTAL.*\s+\d+\s+\d+\s+(\d+)%/'
script:
- export PYTHONPATH="${PYTHONPATH}:$(pwd)"
- pip install -r requirements.txt
- >
py.test
--cov-report term
--cov=pipper
.
codecov:
image: python:3.8
stage: broadcast
script:
- pip install codecov
- ls -la
- codecov
coveralls:
image: python:3.8
stage: broadcast
script:
- pip install coveralls
- ls -la
- coveralls --verbose