Merge branch 'tests' of gitlab.psi.ch:augustin_s/grum into tests
This commit is contained in:
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal file
@ -0,0 +1,23 @@
|
||||
tests:
|
||||
stage: Test
|
||||
variables:
|
||||
QT_QPA_PLATFORM: "offscreen"
|
||||
script:
|
||||
- pip install pytest pytest-random-order pytest-cov
|
||||
- pip install -e ./
|
||||
- apt-get update
|
||||
- apt-get install ffmpeg libsm6 libxext6 libxkbcommon-x11-0 -y
|
||||
- apt-get install libxcb-xinerama0 -y
|
||||
|
||||
|
||||
- python -m unittest discover -f ./tests
|
||||
- coverage run --source=./live_display -m unittest discover -f ./tests
|
||||
- coverage report
|
||||
- coverage xml
|
||||
|
||||
|
||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||
artifacts:
|
||||
reports:
|
||||
cobertura: coverage.xml
|
||||
|
Reference in New Issue
Block a user