Skip to content

Commit 2f25959

Browse files
committed
Use Azure Pipelines dependsOn to stage the jobs
1 parent 9f153e9 commit 2f25959

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

azure-pipelines.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,22 @@ trigger: ["master"]
1010
pr: ["master"]
1111

1212
jobs:
13-
- job: DockerLinux
13+
- job: DockerLinuxTier1
14+
pool:
15+
vmImage: ubuntu-16.04
16+
steps:
17+
- template: ci/azure-install-rust.yml
18+
- bash: sh ./ci/run-docker.sh $TARGET
19+
displayName: Execute run-docker.sh
20+
strategy:
21+
matrix:
22+
i686-unknown-linux-gnu:
23+
TARGET: i686-unknown-linux-gnu
24+
x86_64-unknown-linux-gnu:
25+
TARGET: x86_64-unknown-linux-gnu
26+
27+
- job: DockerLinuxTier2
28+
dependsOn: DockerLinuxTier1
1429
pool:
1530
vmImage: ubuntu-16.04
1631
steps:
@@ -35,8 +50,6 @@ jobs:
3550
TARGET: asmjs-unknown-emscripten
3651
i686-linux-android:
3752
TARGET: i686-linux-android
38-
i686-unknown-linux-gnu:
39-
TARGET: i686-unknown-linux-gnu
4053
i686-unknown-linux-musl:
4154
TARGET: i686-unknown-linux-musl
4255
mips-unknown-linux-gnu:
@@ -65,8 +78,6 @@ jobs:
6578
TARGET: wasm32-unknown-emscripten
6679
x86_64-linux-android:
6780
TARGET: x86_64-linux-android
68-
x86_64-unknown-linux-gnu:
69-
TARGET: x86_64-unknown-linux-gnu
7081
x86_64-unknown-linux-gnux32:
7182
TARGET: x86_64-unknown-linux-gnux32
7283
x86_64-unknown-linux-musl:
@@ -132,6 +143,7 @@ jobs:
132143
deploy_dir: target/doc
133144

134145
#- job: SemverLinux
146+
# dependsOn: BuildChannelsLinux
135147
# continueOnError: true
136148
# pool:
137149
# vmImage: ubuntu-16.04
@@ -141,6 +153,7 @@ jobs:
141153
# displayName: Check breaking changes
142154

143155
#- job: SemverOSX
156+
# dependsOn: BuildChannelsOSX
144157
# continueOnError: true
145158
# pool:
146159
# vmImage: macos-10.14
@@ -150,6 +163,7 @@ jobs:
150163
# displayName: Check breaking changes
151164

152165
- job: BuildChannelsLinux
166+
dependsOn: StyleAndDocs
153167
pool:
154168
vmImage: ubuntu-16.04
155169
steps:
@@ -178,6 +192,7 @@ jobs:
178192
OS: linux
179193

180194
- job: BuildChannelsOSX
195+
dependsOn: StyleAndDocs
181196
pool:
182197
vmImage: macos-10.13
183198
steps:

0 commit comments

Comments
 (0)