forked from Wuestengecko/DoorPi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
46 lines (41 loc) · 904 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
include:
template: Jobs/Code-Quality.gitlab-ci.yml
default:
image: python:3.8
interruptible: true
artifacts:
expire_in: 1 week
before_script:
- python -V # Print out python version for debugging
cache:
paths:
- .cache/pip
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
code_quality:
before_script: []
cache:
paths: []
artifacts:
paths: ["gl-code-quality-report.json"]
Wheel:
needs: []
stage: build
script:
- python setup.py bdist_wheel
- mv dist/* .
artifacts:
paths:
- "*.whl"
Test:
needs: []
stage: test
script:
- pip install -e ".[files_pseudokb,rfid,test,web]"
- coverage run --branch --source doorpi -m unittest discover -b -s test -t .
- coverage report --skip-covered
- coverage xml -o coverage.xml
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
reports:
cobertura: coverage.xml