Skip to content

Commit 7d8ff85

Browse files
committed
Consolidate x-plat integration tests
1 parent ec9f32e commit 7d8ff85

File tree

1 file changed

+22
-42
lines changed

1 file changed

+22
-42
lines changed

azure-pipelines.yml

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -198,54 +198,34 @@ stages:
198198
199199
- stage: Test
200200
jobs:
201-
- job: Ubuntu_Xenial
202-
pool:
203-
vmImage: Ubuntu 16.04
204-
container: xenial
205-
steps:
206-
- bash: sudo apt update && sudo apt-get install -y git
207-
displayName: Install git
208-
- template: azure-pipelines/xplattest-pipeline.yml
209-
210-
- job: Ubuntu_Bionic_2_1
211-
pool:
212-
vmImage: Ubuntu 16.04 # not a bug. we always use this pool, but use containers for the specific version
213-
container: bionic-2.1
214-
steps:
215-
- template: azure-pipelines/xplattest-pipeline.yml
216-
217-
- job: Ubuntu_Bionic
218-
pool:
219-
vmImage: Ubuntu 16.04 # not a bug. we always use this pool, but use containers for the specific version
220-
container: bionic
221-
steps:
222-
- template: azure-pipelines/xplattest-pipeline.yml
223-
224-
- job: Ubuntu_Focal
225-
pool:
226-
vmImage: Ubuntu 16.04 # not a bug. we always use this pool, but use containers for the specific version
227-
container: focal
228-
steps:
229-
- template: azure-pipelines/xplattest-pipeline.yml
230-
231-
- job: Ubuntu_Disco_3_0
232-
pool:
233-
vmImage: Ubuntu 16.04 # not a bug. we always use this pool, but use containers for the specific version
234-
container: disco-3.0
235-
steps:
236-
- template: azure-pipelines/xplattest-pipeline.yml
237-
238-
- job: Arch_Linux
201+
- job: linux
202+
strategy:
203+
matrix:
204+
xenial:
205+
containerImage: 'xenial'
206+
installGit: 'sudo apt update && sudo apt-get install -y git'
207+
Ubuntu_Bionic_2_1:
208+
containerImage: 'bionic-2.1'
209+
Ubuntu_Bionic:
210+
containerImage: 'bionic'
211+
Ubuntu_Focal:
212+
containerImage: 'focal'
213+
Ubuntu_Disco_3_0:
214+
containerImage: 'disco-3.0'
215+
Arch_Linux:
216+
containerImage: 'disco-3.0'
217+
installGit: 'sudo pacman -Sy --noconfirm git dotnet-sdk openssl-1.0'
239218
pool:
240-
vmImage: Ubuntu 16.04 # not a bug. we always use this pool, but use containers for the specific version
241-
container: archlinux
219+
vmImage: ubuntu-20.04
220+
container: $[ variables['containerImage'] ]
242221
steps:
243-
- bash: sudo pacman -Sy --noconfirm git dotnet-sdk openssl-1.0
222+
- bash: $(installGit)
244223
displayName: Install git
224+
condition: ne(variables['installGit'], '')
245225
- template: azure-pipelines/xplattest-pipeline.yml
246226

247227
- job: macOS
248228
pool:
249229
vmImage: macOS-10.15
250230
steps:
251-
- template: azure-pipelines/xplattest-pipeline.yml
231+
- template: azure-pipelines/xplattest-pipeline.yml

0 commit comments

Comments
 (0)