selfprivacy-rest-api/.drone.yml

29 lines
741 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
steps:
- name: Run Tests and Generate Coverage Report
2021-12-06 21:11:04 +02:00
commands:
- VM_TEST_OUT_PATH="$(nix build .#checks.x86_64-linux.default --no-link --print-out-paths --print-build-logs)"
2024-04-14 13:12:21 +03:00
- sonar-scanner -Dsonar.projectKey=SelfPrivacy-REST-API -Dsonar.sources="$PWD" -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN" -Dsonar.python.coverage.reportPaths="$VM_TEST_OUT_PATH/coverage.xml" -Dsonar.python.version=3.10
environment:
SONARQUBE_TOKEN:
from_secret: SONARQUBE_TOKEN
2022-12-27 06:10:14 +02:00
- name: Run Bandit Checks
commands:
- bandit -ll -r selfprivacy_api
- name: Run Code Formatting Checks
commands:
- black --check .
node:
server: builder
2023-06-23 13:02:52 +03:00
trigger:
event:
- push