add sonarqube to pipeline
parent
9489180363
commit
8c837384eb
16
.drone.yml
16
.drone.yml
|
@ -2,18 +2,20 @@ kind: pipeline
|
|||
type: exec
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
- name: Run Tests and Generate Coverage Report
|
||||
commands:
|
||||
- coverage run -m pytest -q
|
||||
- coverage xml
|
||||
- name: bandit
|
||||
- sonar-scanner -Dsonar.projectKey=SelfPrivacy-REST-API -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN"
|
||||
|
||||
- name: Run Bandit Checks
|
||||
commands:
|
||||
- bandit -ll -r selfprivacy_api
|
||||
- name: formatting
|
||||
|
||||
- name: Run Code Formatting Checks
|
||||
commands:
|
||||
- black --check .
|
||||
|
||||
node:
|
||||
server: builder
|
||||
|
|
Loading…
Reference in New Issue