forked from OPCFoundation/UA-.NETStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
106 lines (102 loc) · 2.71 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
# 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')) }}
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-18.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: net462
agents: '@{ windows = "windows-2019" }'
jobnamesuffix: net462
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: netcoreapp3.1
jobnamesuffix: core3
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net6.0
agents: '@{ windows = "windows-2022"; linux="ubuntu-20.04"; mac = "macOS-11"}'
jobnamesuffix: net60
- stage: testreleasepr
dependsOn: []
displayName: 'Fast PR Test Core and SDK Release'
condition: eq(variables.FullBuild, 'False')
jobs:
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net6.0
agents: '@{ windows = "windows-2022"; linux="ubuntu-20.04"}'
jobnamesuffix: net60pr
- stage: testdebug
dependsOn: [build]
displayName: 'Test Core and SDK Debug'
condition: and(succeeded(), ne(variables.FullBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: netcoreapp3.1
configuration: Debug
- stage: coverage
dependsOn: [testdebug,testrelease]
displayName: 'Code Coverage'
condition: and(succeeded(), ne(variables.FullBuild, 'False'))
jobs:
- template: .azurepipelines/testcc.yml
parameters:
configuration: Release
poolImage: 'ubuntu-20.04'
jobnamesuffix: netcore31