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