forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-ci.yml
74 lines (61 loc) · 2.4 KB
/
.azure-ci.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
# Setting batch to true, triggers one build at a time.
# if there is a push while a build in progress, it will wait,
# until the running build finishes, and produce a build with all the changes
# that happened during the last build.
trigger:
batch: true
branches:
include:
- master
- release/3.0
# TODO: add paths to exclude CI when modifying docs or stuff not affecting the build
pr:
- master
- release/3.0
resources:
containers:
- container: rhel7_container
image: microsoft/dotnet-buildtools-prereqs:rhel7_prereqs_2
- container: rhel6_container
image: microsoft/dotnet-buildtools-prereqs:centos-6-376e1a3-20174311014331
- container: alpine_36_container
image: microsoft/dotnet-buildtools-prereqs:alpine-3.6-WithNode-f4d3fe3-20181213005010
- container: alpine_37_arm64_container
image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-arm64-alpine10fcdcf-20190208200917
- container: ubuntu_1604_arm64_cross_container
image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-arm64-a3ae44b-20180315221921
- container: ubuntu_1604_arm_cross_container
image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-ef0ac75-20175511035548
jobs:
# Windows legs
- template: /eng/pipelines/windows.yml
${{ if and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}:
parameters:
isOfficialBuild: true
# Linux legs
- template: /eng/pipelines/linux.yml
${{ if and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}:
parameters:
isOfficialBuild: true
# MacOS legs
- template: /eng/pipelines/macos.yml
${{ if and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}:
parameters:
isOfficialBuild: true
# Only run in official builds
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}:
# Redhat6 leg is only for official builds
- template: /eng/pipelines/redhat6.yml
# FreeBSD leg is only for official builds
# - template: /eng/pipelines/freebsd.yml
# Publish step
- template: /eng/pipelines/publish.yml
parameters:
dependsOn:
- WindowsTest
- WindowsNoTest
- AllConfigurations
- LinuxTest
- MacOS
- RedHat6
# - FreeBSD