diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 24435f2c2a95f46b43a7dfec851f54e93b6e3798..0cd0dfb2e534ba85fb6f6152f76ec2085beda5b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -105,7 +105,8 @@ sonarqube-check: - .sonar/cache script: - "dotnet sonarscanner begin /k:\"kon0379DiplomaThesis\" /d:sonar.token=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" /d:sonar.cs.opencover.reportsPaths=\"**/coverage.cobertura.xml\"" - - "sudo dotnet test --collect:\"XPlat Code Coverage\"" + - sudo dotnet build --no-incremental + - dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml" - "dotnet sonarscanner end /d:sonar.token=\"$SONAR_TOKEN\"" allow_failure: true only: