forked from PimRheiter/regex-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
44 lines (36 loc) · 993 Bytes
/
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
trigger: none
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
projectKey: 'regmut:RegexParser'
projectName: 'Regex Mutaties in Stryker Mutator'
steps:
- task: DotNetCoreCLI@2
displayName: Dotnet Restore
inputs:
command: 'restore'
projects: '**/*.csproj'
- task: SonarQubePrepare@4
displayName: Prepare SonarQube
inputs:
SonarQube: 'SonarQube Service Connection'
scannerMode: 'MSBuild'
projectKey: $(projectKey)
projectName: $(projectName)
- task: DotNetCoreCLI@2
displayName: 'DotNet Build'
inputs:
projects: '$(solution)'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Dotnet Test'
inputs:
command: test
projects: '**/*.UnitTest'
arguments: '--configuration $(BuildConfiguration) --collect:"Code Coverage"'
- task: SonarQubeAnalyze@4
displayName: Analyze with SonarQube
- task: SonarQubePublish@4