forked from OPCFoundation/UA-.NETStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
162 lines (158 loc) · 4.48 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Azure pipeline
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
batch: 'true'
branches:
include:
- '*'
paths:
include:
- '*'
exclude:
- 'Docs/*'
- 'README.md'
pr:
autoCancel: 'true'
branches:
include:
- '*'
paths:
include:
- '*'
variables:
FullBuild: ${{ or(ne(variables['Build.Reason'], 'PullRequest'), ne(variables['System.PullRequest.IsFork'], 'False')) }}
ScheduledBuild: ${{ in(variables['Build.Reason'], 'Schedule', 'Manual') }}
stages:
- stage: build
displayName: 'Build .NET Core Samples'
jobs:
- template: .azurepipelines/ci.yml
- stage: buildnohttps
dependsOn: []
displayName: 'Build NoHttps .NET Core Samples'
condition: ne(variables.FullBuild, 'False')
jobs:
- template: .azurepipelines/ci.yml
parameters:
buildoption: '-p:NoHttps=true'
agents: '@{ linux = "ubuntu-22.04" }'
- stage: solutions
dependsOn: []
displayName: 'Build Solutions'
jobs:
- template: .azurepipelines/sln.yml
parameters:
poolImage: 'windows-2022'
jobnamesuffix: win2022
- template: .azurepipelines/sln.yml
parameters:
poolImage: 'windows-2019'
jobnamesuffix: win2019
- stage: testrelease
dependsOn: [build]
displayName: 'Test Core and SDK Release'
condition: and(succeeded(), ne(variables.FullBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net48
agents: '@{ windows = "windows-2019" }'
jobnamesuffix: net48
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net6.0
agents: '@{ windows = "windows-2022"; linux="ubuntu-22.04"; mac = "macOS-12"}'
jobnamesuffix: net60
customtestarget: net6.0
- stage: testreleasepr
dependsOn: []
displayName: 'Fast .NET 8.0 PR Test'
condition: and(eq(variables.FullBuild, 'False'), eq(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net8.0
agents: '@{ windows = "windows-2022"; linux="ubuntu-20.04"}'
jobnamesuffix: net80pr
- stage: testdebug
dependsOn: [build]
displayName: 'Test .NET 8.0 Debug'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net8.0
configuration: Debug
jobnamesuffix: net80debug
- stage: testnet80
dependsOn: [build]
displayName: 'Test .NET 8.0'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net8.0
configuration: Release
jobnamesuffix: net80
- stage: testnet462
dependsOn: [build]
displayName: 'Test .NET 4.6.2'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net462
configuration: Release
jobnamesuffix: net462
agents: '@{ windows = "windows-2022" }'
customtestarget: net462
- stage: testnet472
dependsOn: [build]
displayName: 'Test .NET 4.7.2'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net472
configuration: Release
jobnamesuffix: net472
agents: '@{ windows = "windows-2022" }'
customtestarget: net472
- stage: testnetstandard20
dependsOn: [build]
displayName: 'Test .NETStandard 2.0'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net6.0
configuration: Release
jobnamesuffix: netstandard20
agents: '@{ windows = "windows-2019"; linux="ubuntu-20.04"}'
customtestarget: netstandard2.0
- stage: testnetstandard21
dependsOn: [build]
displayName: 'Test .NETStandard 2.1'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net6.0
configuration: Release
jobnamesuffix: netstandard21
customtestarget: netstandard2.1
- stage: coverage
dependsOn: [testdebug,testrelease]
displayName: 'Code Coverage'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/testcc.yml
parameters:
configuration: Release
poolImage: 'ubuntu-22.04'
framework: net8.0
jobnamesuffix: net80cc