mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-08-18 22:45:12 +00:00
Co-authored-by: Alya Sirko <alya@selfprivacy.org> Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/15 Co-authored-by: Alya Sirko <alya.sirko@tuta.io> Co-committed-by: Alya Sirko <alya.sirko@tuta.io>
25 lines
542 B
YAML
25 lines
542 B
YAML
kind: pipeline
|
|
type: exec
|
|
name: default
|
|
|
|
steps:
|
|
- name: Run Tests and Generate Coverage Report
|
|
commands:
|
|
- coverage run -m pytest -q
|
|
- coverage xml
|
|
- sonar-scanner -Dsonar.projectKey=SelfPrivacy-REST-API -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN"
|
|
environment:
|
|
SONARQUBE_TOKEN:
|
|
from_secret: SONARQUBE_TOKEN
|
|
|
|
- name: Run Bandit Checks
|
|
commands:
|
|
- bandit -ll -r selfprivacy_api
|
|
|
|
- name: Run Code Formatting Checks
|
|
commands:
|
|
- black --check .
|
|
|
|
node:
|
|
server: builder
|