-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
59 lines (57 loc) · 1.54 KB
/
azure-pipelines.yml
File metadata and controls
59 lines (57 loc) · 1.54 KB
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
54
55
56
57
58
59
variables:
buildConfiguration: 'Release'
netSdkVersion: '10.x'
jobs:
- job: BuildAndRunCodeAnalysis
displayName: Build and run code analysis
pool:
vmImage: windows-latest
steps:
- task: UseDotNet@2
displayName: Set up .NET SDK
inputs:
version: $(netSdkVersion)
- task: DotNetCoreCLI@2
displayName: Build solution with code analysis
inputs:
command: build
projects: '**/*.slnx'
arguments: -c $(buildConfiguration) -warnaserror
- job: RunTests
displayName: Run tests on
strategy:
matrix:
Ubuntu:
imageName: 'ubuntu-latest'
macOS:
imageName: 'macOS-latest'
Windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- task: UseDotNet@2
displayName: Set up .NET SDK
inputs:
version: $(netSdkVersion)
- task: DotNetCoreCLI@2
displayName: Build solution
inputs:
command: build
projects: '*.slnx'
arguments: -c $(buildConfiguration) -p:RunAnalyzers=false
- task: DotNetCoreCLI@2
displayName: Run unit tests
timeoutInMinutes: 3
inputs:
command: test
projects: 'test/*/*.UnitTests.csproj'
arguments: -c $(buildConfiguration) -s "azure-pipelines.codecoverage.runsettings" --no-build
- task: DotNetCoreCLI@2
displayName: Run integration tests
condition: succeededOrFailed()
timeoutInMinutes: 5
inputs:
command: test
projects: 'test/*/*IntegrationTests.csproj'
arguments: -c $(buildConfiguration) -s "azure-pipelines.runsettings" --no-build