selfprivacy-rest-api/.drone.yml

25 lines
542 B
YAML
Raw Normal View History

2021-12-06 19:12:30 +00:00
kind: pipeline
type: exec
2021-12-06 19:11:04 +00:00
name: default
2021-12-06 19:12:30 +00:00
2021-12-06 19:11:04 +00:00
steps:
- name: Run Tests and Generate Coverage Report
2021-12-06 19:11:04 +00:00
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