From 94bef45306cf2ef13c22e82a8ac7cdfa61fed1cd Mon Sep 17 00:00:00 2001 From: RemRem et ToTo Date: Sat, 11 Feb 2023 11:48:30 +0100 Subject: [PATCH] :stethoscope: add sonarqube ci --- .drone.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index dc1207c..cefe0da 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,4 +28,12 @@ steps: COMMAND: create OVERWRITE: true ADMINS: aurianjault,raphaellacote,bastienjacquelin,remiarnal - depends_on : [hyperset-build] \ No newline at end of file + depends_on : [hyperset-build] + + - name: code-analysis + environment: + SONAR_TOKEN: + from_secret: SONAR_TOKEN + commands: + - sonar-scanner -Dsonar.projectKey=hyperset -Dsonar.sources=. -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar + depends_on: [ hyperset-build ] \ No newline at end of file