diff --git a/.drone.yml b/.drone.yml index 8a84602..191859c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,8 +18,18 @@ steps: commands: - vendor/bin/phpunit --filter "/(testCallWebService)( .*)?$/" ./common/Tests/WS_UtilTest.php - vendor/bin/phpunit --filter "/(testAllKeysToUppercase)( .*)?$/" ./common/Tests/WS_UtilTest.php - depends_on: - - Setup + depends_on: [Setup] + + - name: sonar + image: sonarsouce/sonar-scanner-cli:5 + commands: + -Dsonar.projectKey=CICD_WebPage_Louis_Duf \ + -Dsonar.sources=. \ + -Dsonar.host.url=https://codefirst.iut.uca.fr/sona + settings: + sonar_token: + from_secret: SECRET_SONAR_LOGIN + depends_on: [Setup] - name: hadolint image: hadolint/hadolint:latest-alpine