-
Notifications
You must be signed in to change notification settings - Fork 676
/
azure-pipelines.yml
119 lines (110 loc) · 2.84 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
trigger:
batch: true
branches:
include:
- feature/*
- release
- prerelease
- main
pr:
branches:
include:
- feature/*
- release
- prerelease
- main
paths:
exclude:
- ./*.md
- .github/*
# Run a scheduled build every night on main to run tests against insiders VSCode.
# The variable testVSCodeVersion is set to insiders based on the build reason.
schedules:
- cron: "0 0 * * *"
displayName: Daily Insiders Build
branches:
include:
- main
variables:
- name: defaultDotnetVersion
value: '8.0.403'
- name: testVSCodeVersion
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
value: insiders
${{ else }}:
value: stable
stages:
- template: azure-pipelines/build-all.yml
parameters:
isOfficial: false
signType: test
dotnetVersion: $(defaultDotnetVersion)
- stage:
displayName: Test Linux (.NET 6)
dependsOn: []
jobs:
- template: azure-pipelines/test-matrix.yml
parameters:
# Prefer the dotnet from the container.
dotnetVersion: ''
testVSCodeVersion: $(testVSCodeVersion)
installAdditionalLinuxDependencies: true
pool:
name: NetCore-Public
demands: ImageOverride -equals 1es-ubuntu-2004-open
containerName: mcr.microsoft.com/dotnet/sdk:6.0
- stage:
displayName: Test Linux (.NET 8)
dependsOn: []
jobs:
- template: azure-pipelines/test-matrix.yml
parameters:
# Prefer the dotnet from the container.
dotnetVersion: ''
testVSCodeVersion: $(testVSCodeVersion)
installAdditionalLinuxDependencies: true
pool:
name: NetCore-Public
demands: ImageOverride -equals 1es-ubuntu-2004-open
containerName: mcr.microsoft.com/dotnet/sdk:8.0
- stage: Test_Windows_Stage
displayName: Test Windows
dependsOn: []
jobs:
- template: azure-pipelines/test-matrix.yml
parameters:
dotnetVersion: $(defaultDotnetVersion)
testVSCodeVersion: $(testVSCodeVersion)
pool:
name: NetCore-Public
demands: ImageOverride -equals 1es-windows-2022-open
- stage: Test_MacOS_Stage
displayName: Test MacOS
dependsOn: []
jobs:
- template: azure-pipelines/test-matrix.yml
parameters:
dotnetVersion: $(defaultDotnetVersion)
testVSCodeVersion: $(testVSCodeVersion)
pool:
name: Azure Pipelines
vmImage: macOS-13
- stage: Test_OmniSharp
displayName: Test OmniSharp
dependsOn: []
jobs:
- job: Test
strategy:
matrix:
linux:
demandsName: 1es-ubuntu-2004-open
windows:
demandsName: 1es-windows-2022-open
pool:
name: NetCore-Public
demands: ImageOverride -equals $(demandsName)
steps:
- template: azure-pipelines/test-omnisharp.yml
parameters:
dotnetVersion: $(defaultDotnetVersion)
testVSCodeVersion: $(testVSCodeVersion)