File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ pool :
2+ vmImage : ubuntu-latest
3+ name : Azure Pipelines
4+ demands : java
5+
6+ trigger :
7+ branches :
8+ include :
9+ - dev
10+ - version-5
11+ - 6.0.0
12+ - 7.0.0
13+ exclude :
14+ - ' *'
15+
16+ pr :
17+ variables :
18+ buildConfiguration : ' Release'
19+
20+ steps :
21+ - task : SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
22+ displayName : ' Prepare analysis on SonarCloud'
23+ inputs :
24+ SonarCloud : ' SonarCloud-ADT'
25+ organization : typinghard
26+ projectKey : ' typinghard_azure-devops-tracker'
27+ extraProperties : |
28+ sonar.exclusions=**/obj/**,**/*.dll
29+ sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml
30+ sonar.cs.vscoveragexml.reportsPaths=**/coverage.opencover.xml
31+ sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/*.trx
32+
33+ - task : CmdLine@2
34+ inputs :
35+ script : dotnet test --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --collect "Code Coverage" /p:Exclude=[xunit.*]*
36+ displayName : ' Run Tests'
37+
38+ - task : SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1
39+ displayName : ' Run Code Analysis'
40+
41+ - task : SonarSource.sonarcloud.38b27399-a642-40af-bb7d-9971f69712e8.SonarCloudPublish@1
42+ displayName : ' Publish Quality Gate Result'
You can’t perform that action at this time.
0 commit comments