forked from microsoft/azure-pipelines-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci.yml
57 lines (51 loc) · 1.48 KB
/
.vsts-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
trigger:
- master
- releases/*
phases:
# All tasks on Windows
- phase: build_all_windows
displayName: Build all tasks (Windows)
condition: and(succeeded(), not(variables.task), eq(variables.os, 'Windows_NT'))
queue:
name: Hosted VS2017
parallel: $[ variables.build_windows_parallel ]
steps:
- template: ci/build-all-steps.yml
parameters:
os: Windows_NT
# Publish on Windows
- phase: publish_windows
displayName: Publish
dependsOn: build_all_windows # TODO: also depend on buildAll_darwin buildAll_linux
condition: and(succeeded(), ne(variables['build.reason'], 'PullRequest'))
queue: Hosted VS2017
steps:
- template: ci/publish-steps.yml
# All tasks on Linux
- phase: build_all_linux
displayName: Build all tasks (Linux)
condition: and(succeeded(), not(variables.task), eq(variables.os, 'Linux'))
queue:
name: Hosted Linux Preview
parallel: $[ variables.build_linux_parallel ]
steps:
- template: ci/build-all-steps.yml
parameters:
os: Linux
# All tasks on macOS
- phase: build_all_darwin
displayName: Build all tasks (macOS)
condition: and(succeeded(), not(variables.task), eq(variables.os, 'Darwin'))
queue:
name: Hosted macOS Preview
parallel: $[ variables.build_darwin_parallel ]
steps:
- template: ci/build-all-steps.yml
parameters:
os: Darwin
# Single task
- phase: buildSingle
displayName: Build single task
condition: and(succeeded(), variables.task)
steps:
- template: ci/build-single-steps.yml