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]