-
Notifications
You must be signed in to change notification settings - Fork 23
/
.gitlab-ci.yml
38 lines (35 loc) · 859 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
stages:
- test
"mypy":
stage: test
image: python:alpine
script:
- python -m pip install -r requirements.txt
- mkdir cov
- mypy --junit-xml cov/mypy.xml -v .
artifacts:
reports:
junit: cov/mypy.xml
"flake8":
stage: test
image: python:alpine
script:
- python -m pip install -r requirements.txt
- mkdir cov
- flake8 --format junit-xml --output-file cov/flake8.xml .
artifacts:
reports:
junit: cov/flake8.xml
"pytest":
stage: test
image: python:alpine
script:
- python -m pip install -r requirements.txt
- mkdir cov
- python3 -m pytest --junitxml=cov/pytest_junit.xml --cov=. --cov-report=xml:cov/pytest_cobertura.xml . -v
artifacts:
reports:
junit: cov/pytest_junit.xml
coverage_report:
coverage_format: cobertura
path: cov/pytest_cobertura.xml