From 9cb03776e24b71f60b9aa4501cf7bcaf8050a0bc Mon Sep 17 00:00:00 2001 From: Matheo HERSAN Date: Thu, 8 Jun 2023 21:52:56 +0200 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5c0a580..1316006 100644 --- a/.drone.yml +++ b/.drone.yml @@ -38,7 +38,9 @@ steps: - dotnet restore MangaMap.sln - dotnet sonarscanner begin /k:"MangaMap" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet build MangaMap.sln -c Release --no-restore -# - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + - dotnet test MangaMap.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" + - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport" + - dotnet publish MangaMap/MangaMap.csproj -c Release --no-restore -o - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} depends_on: [tests]