Update '.drone.yml'
continuous-integration/drone/push Build is failing Details

pull/43/head^2
Matheo HERSAN 2 years ago
parent de7de89e99
commit 86e96927c3

@ -34,13 +34,13 @@ steps:
sonar_token:
from_secret: SECRET_SONAR_LOGIN
commands:
- cd src/
- cd src/MangaMap/
- 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 test MangaMap.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
- find . -name coverage.cobertura.xml
- reportgenerator -reports:"UnitTests/TestResults/**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
- reportgenerator -reports:"../UnitTests/TestResults/**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
- dotnet publish MangaMap/MangaMap.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}

Loading…
Cancel
Save