-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
53 lines (45 loc) · 1.33 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
profile: 'azure'
environment: 'Stage'
steps:
- task: SonarCloudPrepare@1
displayName: 'Prepare SonarCloud analysis'
inputs:
SonarCloud: 'SonarCloud'
organization: 'aqualityautomation'
projectKey: 'aquality-automation_aquality-selenium-dotnet-template'
projectName: 'aquality-selenium-dotnet-template'
projectVersion: '$(Build.BuildNumber)'
extraProperties: |
sonar.coverage.exclusions=**/**
- task: UseDotNet@2
displayName: Use .NET 8.0
inputs:
packageType: 'sdk'
version: '8.0.x'
- task: DotNetCoreCLI@2
displayName: 'Build whole solution'
env:
MSBUILDSINGLELOADCONTEXT: 1 # https://github.com/SpecFlowOSS/SpecFlow/issues/1912
inputs:
command: 'build'
projects: Aquality.Selenium.Template/Aquality.Selenium.Template.sln
arguments: -c $(buildConfiguration)
- task: SonarCloudAnalyze@1
displayName: 'Run SonarCloud code analysis'
continueOnError: true
- task: SonarCloudPublish@1
displayName: 'Publish SonarCloud quality gate results'
continueOnError: true
- task: DotNetCoreCLI@2
displayName: 'Run tests'
inputs:
command: 'test'
projects: '**/Aquality.Selenium.Template.SpecFlow.csproj'
arguments: -c $(buildConfiguration) --no-build
publishTestResults: true