File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 66 - dotnet : 2.1 # latest available release
77 mono : none
88solution : Mastercard.Developer.OAuth1Signer.sln
9+ env :
10+ - TEST_RESULTS_PATH=./Mastercard.Developer.OAuth1Signer.Tests/TestResults
911install :
1012 - dotnet tool install --global dotnet-sonarscanner
1113 - dotnet restore
@@ -18,8 +20,9 @@ script:
1820 /d:sonar.organization="$SONAR_ORGANIZATION_KEY" \
1921 /d:sonar.host.url="$SONAR_URL" \
2022 /d:sonar.login="$SONAR_TOKEN" \
21- /d:sonar.cs.vstest.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/TestResults/results.trx" \
22- /d:sonar.cs.opencover.reportsPaths="./Mastercard.Developer.OAuth1Signer.Tests/TestResults/coverage.xml"
23+ /d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/results.trx" \
24+ /d:sonar.cs.opencover.reportsPaths="${TEST_RESULTS_PATH}/coverage.xml" \
25+ /d:sonar.exclusions="${TEST_RESULTS_PATH}/**/*"
2326 - dotnet test -c Release -l:"trx;LogFileName=results.trx" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="TestResults/coverage.xml"
2427 - dotnet publish -c Release
2528 - dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"
You can’t perform that action at this time.
0 commit comments