-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.azure-pipelines.yml
103 lines (94 loc) · 2.47 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# https://aka.ms/yaml
trigger:
- master
jobs:
- job: ShellBuild
displayName: "Build"
continueOnError: "true"
timeoutInMinutes: 5
variables:
buildFramework: netcoreapp2.1
strategy:
matrix:
"Linux 2.1 Debug":
sdkVersion: "2.1.x"
config: Debug
imageName: ubuntu-latest
framework: $(buildFramework)
"Linux 2.1 Release":
sdkVersion: "2.1.x"
config: Release
imageName: ubuntu-latest
framework: $(buildFramework)
"Linux 2.2 Debug":
sdkVersion: "2.2.x"
config: Debug
imageName: ubuntu-latest
framework: $(buildFramework)
"Linux 2.2 Release":
sdkVersion: "2.2.x"
config: Release
imageName: ubuntu-latest
framework: $(buildFramework)
"MacOS 2.1 Debug":
sdkVersion: "2.1.x"
config: Debug
imageName: macOS-latest
framework: $(buildFramework)
"MacOS 2.1 Release":
sdkVersion: "2.1.x"
config: Release
imageName: macOS-latest
framework: $(buildFramework)
"MacOS 2.2 Debug":
sdkVersion: "2.2.x"
config: Debug
imageName: macOS-latest
framework: $(buildFramework)
"MacOS 2.2 Release":
sdkVersion: "2.2.x"
config: Release
imageName: macOS-latest
framework: $(buildFramework)
pool:
vmImage: $(imageName)
steps:
- task: UseDotNet@2
displayName: Install .NET Core SDK $(sdkVersion)
inputs:
version: $(sdkVersion)
- task: ShellScript@2
displayName: Test Coverage
inputs:
scriptPath: ./coverage.sh
args: "$(framework) $(config)"
- task: PublishTestResults@2
displayName: Publish test results
inputs:
testResultsFormat: VSTest
testResultsFiles: "**/*.trx"
failTaskOnFailedTests: true
buildConfiguration: $(config)
publishRunAttachments: true
- task: PublishCodeCoverageResults@1
displayName: Publish code coverage
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: ./test/TestResults/output/coverage.$(framework).cobertura.xml
- job: CmdBuild
displayName: "Build"
continueOnError: "true"
strategy:
matrix:
"Windows .NET Framework Debug":
config: Debug
"Windows .NET Framework Release":
config: Release
pool:
vmImage: windows-latest
steps:
- task: BatchScript@1
inputs:
filename: ./coverage.cmd
arguments: "$(config)"
displayName: Test Coverage