From 7a9556bdc4e41b52279a8fc591652ca6563a14e5 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Thu, 29 Dec 2022 12:27:44 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0d240d..eb41f64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -108,9 +108,10 @@ sonarqube-check: - "dotnet tool install --global dotnet-sonarscanner" - "dotnet tool install --global dotnet-coverage" - "export PATH=\"$PATH:$HOME/.dotnet/tools\"" - - "dotnet sonarscanner begin /k:\"wonderking_continuity_AYVNylewKO-B3MBr7mwm\" /d:sonar.login=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml " + - "dotnet sonarscanner begin /k:\"wonderking_continuity_AYVNylewKO-B3MBr7mwm\" /d:sonar.login=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" /d:sonar.cs.vscoveragexml.reportsPaths=\"**.coveragexml\" /d:sonar.cs.vstest.reportsPaths=\"**.trx\" " - "dotnet build" - - "dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'" + - "dotnet test --collect \"Code Coverage\" --logger trx --results-directory \"TestsResults\"" +# - "dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'" - "dotnet sonarscanner end /d:sonar.login=\"$SONAR_TOKEN\"" allow_failure: true only: