selfprivacy-rest-api/.drone.yml

26 lines
543 B
YAML
Raw Normal View History

2021-12-06 21:12:30 +02:00
kind: pipeline
type: exec
2021-12-06 21:11:04 +02:00
name: default
2021-12-06 21:12:30 +02:00
2021-12-06 21:11:04 +02:00
platform:
os: linux
arch: amd64
2021-12-06 21:12:30 +02:00
2021-12-06 21:11:04 +02:00
steps:
- name: test
commands:
2021-12-14 10:40:11 +02:00
- coverage run -m pytest -q
2021-12-15 09:58:58 +02:00
- coverage xml
- name: bandit
commands:
- bandit -ll -r selfprivacy_api
2021-12-15 11:02:29 +02:00
- name: formatting
commands:
2021-12-17 10:28:04 +02:00
- black --check .
- name: sonarqube
commands:
2021-12-17 10:46:59 +02:00
- sonar-scanner -Dsonar.projectKey=selfprivacy-api -Dsonar.sources=. -Dsonar.host.url=https://sonarqube.inex.dev -Dsonar.login=$SONAR_TOKEN -Dsonar.branch.name=$DRONE_BRANCH
2021-12-17 10:28:04 +02:00
environment:
2021-12-17 10:46:59 +02:00
SONAR_TOKEN:
2021-12-17 10:28:04 +02:00
from_secret: inex-sonarqube