From 48b83586db927e0b5af21a62fb426283578ac288 Mon Sep 17 00:00:00 2001 From: Antoine PEREDERII Date: Sat, 24 Feb 2024 18:24:52 +0100 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d64786a..fb43118 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,10 +25,11 @@ steps: # accessible en ligne de commande par ${SONAR_TOKEN} sonar_token: from_secret: SECRET_SONAR_LOGIN + coverage_exclusions: "Tests/**" commands: - cd src/ - dotnet restore HeartTrack.sln - - dotnet sonarscanner begin /k:"HeartTrack" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${SONAR_TOKEN} + - dotnet sonarscanner begin /k:"HeartTrack-API" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${SONAR_TOKEN} /d:sonar.coverage.exclusions=$${coverage_exclusions} - dotnet build HeartTrack.sln -c Release --no-restore - dotnet test HeartTrack.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"