|
|
@ -39,6 +39,7 @@ steps:
|
|
|
|
- dotnet sonarscanner begin /k:"MangaMap" /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|
- 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 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"
|
|
|
|
- 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 publish MangaMap/MangaMap.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release
|
|
|
|
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
|
|
|
|