File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed
Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 11language : csharp
2- dotnet : 2.1 # latest available release
3- mono : none
42solution : Mastercard.Developer.OAuth1Signer.sln
5- git :
6- depth : false # "Shallow clone detected during the analysis"
7- install :
8- - dotnet tool install --global dotnet-sonarscanner
9- - dotnet restore
10- before_script :
11- - export PATH="$PATH:$HOME/.dotnet/tools"
123jobs :
134 include :
14- - stage : Sonar (begin)
5+ - stage : Test
6+ dotnet : 2.1.500
7+ mono : none
8+ install :
9+ - dotnet restore
10+ script :
11+ - dotnet test -c Release
12+ - dotnet publish -c Release
13+ - stage : Test with code analysis
14+ dotnet : 2.1 # latest available release
15+ mono : none
16+ git :
17+ depth : false # "Shallow clone detected during the analysis"
18+ install :
19+ - dotnet tool install --global dotnet-sonarscanner
20+ - dotnet restore
21+ before_script :
22+ - export PATH="$PATH:$HOME/.dotnet/tools"
1523 env :
1624 - TEST_RESULTS_PATH=./Mastercard.Developer.OAuth1Signer.Tests/TestResults
1725 script :
2331 /d:sonar.login="$SONAR_TOKEN" \
2432 /d:sonar.cs.vstest.reportsPaths="${TEST_RESULTS_PATH}/results.trx" \
2533 /d:sonar.cs.opencover.reportsPaths="${TEST_RESULTS_PATH}/coverage.xml"
26- - stage : Test
27- script :
2834 - dotnet test -c Release -l:"trx;LogFileName=results.trx" /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="TestResults/coverage.xml"
2935 - dotnet publish -c Release
30- - stage : Sonar (end)
31- script :
3236 - dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"
You can’t perform that action at this time.
0 commit comments