-
Notifications
You must be signed in to change notification settings - Fork 63
/
.gitlab-ci.yml
40 lines (35 loc) · 1.17 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
.common:
before_script:
- pip install pytest wheel
script:
- python -m pip install -e .
- python -m pytest -v . --junitxml=junit2html-job-${CI_JOB_NAME}.xml
- python -m junit2htmlreport junit2html-job-${CI_JOB_NAME}.xml
- python -m junit2htmlreport --report-matrix tests/matrix-example.html tests/junit-axis-linux.xml tests/junit-axis-solaris.xml tests/junit-axis-windows.xml
- python -m junit2htmlreport --merge junit2html-merged-example.xml tests/junit-unicode.xml tests/junit-unicode2.xml tests/junit-cute2.xml
- python -m junit2htmlreport junit2html-merged-example.xml
- python setup.py bdist_wheel
- python -m junit2htmlreport --summary-matrix - < junit2html-job-${CI_JOB_NAME}.xml
artifacts:
paths:
- junit2html*.xml*
- tests/*.html
- dist/*.whl
reports:
junit:
- junit2html-job-*.xml
python36:
image: python:3.6
extends: .common
python38:
image: python:3.8
extends: .common
python39:
image: python:3.9
extends: .common
coverage:
image: python:3.9
script:
- pip install pytest pytest-cov
- pip install -e .
- python3 -m pytest --cov-fail-under=86 --cov=junit2htmlreport .