forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
193 lines (164 loc) · 6.23 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
resources:
containers:
- container: ubuntu_1404_arm_cross_build_image
image: microsoft/dotnet-buildtools-prereqs:ubuntu-14.04-cross-e435274-20180426002420
- container: ubuntu_1604_arm64_cross_build_image
image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-arm64-a3ae44b-20180315221921
- container: ubuntu_1604_x64_build_image
image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-c103199-20180628134544
- container: musl_x64_build_image
image: microsoft/dotnet-buildtools-prereqs:alpine-3.6-e2521f8-20180716231200
- container: centos7_x64_build_image
image: microsoft/dotnet-buildtools-prereqs:centos-7-d485f41-20173404063424
- container: centos6_x64_build_image
image: microsoft/dotnet-buildtools-prereqs:centos-6-376e1a3-20174311014331
jobs:
## The following is the matrix of test runs that we have. This is
## duplicated for each os/arch combination in platform-matrix.yml.
##
## Product build Test build Test run
## (Azure DevOps) (Azure DevOps) (helix)
##
## ###########################################################################################
##
## Debug
##
## Checked ----------> Pri0 -----------------> plain runtests
## |
## \---------> Pri1 -----------------> plain runtests
## | \----------------> jitstress
## | \----------------> gcstress
## | \----------------> maybe more (dynamically selected runtest modes)
## |
## \---------> Pri1 crossgen --------> plain runtests
## \-------> jitstress
## \-------> gcstress
## \-------> maybe more (dynamically selected runtest modes)
##
## Release ----------> Pri1 -----------------> plain runtests
## |
## \---------> Pri1 crossgen --------> plain runtests
##
##
## Each build or test job is defined in Azure DevOps, and will show
## up in the UI in the order in which they are defined here. The
## build and test build job matrix is defined statically, but
## queue-time inputs can be used to control whether a job executes
## (used to select which jobs run in ci vs for official builds), or
## to select test modes. This should eventually be used to enable
## requesting specific test runs from pull requests.
##
## Templates used to define jobs:
## Please update this if the factoring changes.
##
## This file defines the set of jobs in a platform-agnostic manner,
## using the platform-matrix.yml template. This will create one job
## for each platform from the passed-in jobTemplate (either a build
## job or a test job). The build-job.yml and test-job.yml templates
## use xplat-job.yml to handle some of the common logic for
## abstracting over platforms. Finally, xplat-job.yml uses the arcade
## base.yml job template, which sets up telemetry and signing support.
## azure-pipelines.yml -> platform-matrix.yml -------> build-job.yml -------> xplat-job.yml -> base.yml
## | (passed-in jobTemplate) | (arcade)
## \------> test-job.yml ------/
# TODO: simplify logic surrounding official build/ci. See
# https://github.com/Microsoft/azure-pipelines-yaml/pull/46 for more information
#
# Debug build (CI)
#
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: build-job.yml
buildConfig: debug
#
# Checked build (CI)
#
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: build-job.yml
buildConfig: checked
#
# Release build (Official Build)
#
- template: eng/platform-matrix.yml
parameters:
jobTemplate: build-job.yml
buildConfig: release
#
# Checked test builds
#
# Pri0 (CI)
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
jobParameters:
priority: 0
# Pri1 (CI)
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
jobParameters:
priority: 1
scenarios: 'normal;jitstress2'
# Pri1 crossgen (CI)
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: checked
jobParameters:
priority: 1
crossgen: true
scenarios: 'normal;jitstress2'
#
# Release test builds (Official Build)
#
# Pri1
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: release
jobParameters:
priority: 1
# Pri1 crossgen (Official Build)
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- template: eng/platform-matrix.yml
parameters:
jobTemplate: test-job.yml
buildConfig: release
jobParameters:
priority: 1
crossgen: true
# Publish build information to Build Assets Registry
# This job gathers build assets from the pipeline (from each official
# product build job), and publishes them to the build assets
# registry. Its dependencies should be updated to include all of the
# official builds if we add more platform/arch combinations.
# TODO: Enable publish to BAR
#- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
# - template: /eng/common/templates/phases/publish-build-assets.yml@arcade
#- phase: publish_bar
# displayName: publish to BAR (empty currently)
# queue:
# name: Hosted VS2017
# dependsOn:
# - build_Linux_x64_release
# - build_OSX_x64_release
# - build_Windows_NT_x64_release
# - build_Windows_NT_x86_release
# - build_Windows_NT_arm_release
# - build_Windows_NT_arm64_release
# TODO: enable these builds
# - build_rhel_x64_release
# - build_alpine_x64_release
# - build_crossbuild_arm_release
# - build_crossbuild_arm64_release