Add unit test reporting and vulnerability scans to CI

This commit is contained in:
Georg Krause 2021-04-22 15:57:15 +02:00
commit 3884ee20a6
No known key found for this signature in database
GPG key ID: FD479B9A4D48E632
4 changed files with 139 additions and 3 deletions

View file

@ -142,9 +142,13 @@ test_api:
- pip3 install -r requirements/local.txt
- pip3 install -r requirements/test.txt
script:
- pytest --cov=funkwhale_api tests/
- pytest --cov=funkwhale_api --junit=report.xml tests/
tags:
- docker
artifacts:
when: always
reports:
junit: report.xml
test_front:
interruptible: true
@ -166,6 +170,8 @@ test_front:
name: "front_${CI_COMMIT_REF_NAME}"
paths:
- front/dist/
reports:
junit: front/test-results.xml
tags:
- docker
@ -285,3 +291,7 @@ build_api:
- tags@funkwhale/funkwhale
- master@funkwhale/funkwhale
- develop@funkwhale/funkwhale
include:
- template: Security/Secret-Detection.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml