File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,20 @@ solution: Mastercard.Developer.OAuth1Signer.sln
1515before_script :
1616 - export PATH="$PATH:$HOME/.dotnet/tools"
1717install :
18- - test $WITH_SONAR_ANALYSIS && dotnet tool install --global dotnet-sonarscanner
1918 - dotnet restore
20- script :
19+ - test $WITH_SONAR_ANALYSIS && dotnet tool install --global dotnet-sonarscanner
20+ before_script :
2121 - |
2222 test $WITH_SONAR_ANALYSIS && dotnet sonarscanner begin \
2323 /k:"$SONAR_PROJECT_KEY" \
24- /d:sonar.projectName= "$SONAR_PROJECT_NAME" \
24+ /n: "$SONAR_PROJECT_NAME" \
2525 /d:sonar.organization="$SONAR_ORGANIZATION_KEY" \
2626 /d:sonar.host.url="$SONAR_URL" \
2727 /d:sonar.login="$SONAR_TOKEN" \
2828 /d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/tests.trx" \
2929 /d:sonar.cs.opencover.reportsPaths="${TEST_RESULTS_PATH}/coverage.xml"
30+ script :
3031 - dotnet test -c Release -l:"trx;LogFileName=tests.trx" -r:"bin/" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="bin/coverage.xml"
3132 - dotnet publish -c Release
33+ after_success :
3234 - test $WITH_SONAR_ANALYSIS && dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"
You can’t perform that action at this time.
0 commit comments