Skip to content

Commit 5453f95

Browse files
committed
[ci] seperate jobs for script steps
1 parent 3f7b1db commit 5453f95

File tree

2 files changed

+32
-17
lines changed

2 files changed

+32
-17
lines changed

.ci/azure-pipelines.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
pool:
2-
vmImage: 'ubuntu-20.04'
3-
4-
strategy:
5-
matrix:
6-
9.3_3.7:
7-
containerImage: pymor/dealii_py3.7:47f2bf40dd49a64292e482b59fe6631101fdcc2b
8-
9.3_3.8:
9-
containerImage: pymor/dealii_py3.8:47f2bf40dd49a64292e482b59fe6631101fdcc2b
10-
9.3_3.9:
11-
containerImage: pymor/dealii_py3.9:47f2bf40dd49a64292e482b59fe6631101fdcc2b
12-
131
schedules:
142
- cron: "0 12 * * 1"
153
displayName: Weekly build
164
branches:
175
include:
186
- main
19-
container: $[ variables['containerImage'] ]
207

21-
steps:
22-
- script: ./.ci/pytest.bash
23-
- script: ./.ci/wheel.bash
24-
- script: ./.ci/install.bash
8+
jobs:
9+
- template: job-template.yml
10+
parameters:
11+
script: pytest
12+
- template: job-template.yml
13+
parameters:
14+
script: wheel
15+
- template: job-template.yml
16+
parameters:
17+
script: install

.ci/job-template.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
parameters:
3+
name: script
4+
5+
jobs:
6+
- job: ${{ parameters.script }}
7+
pool:
8+
vmImage: 'ubuntu-20.04'
9+
10+
strategy:
11+
matrix:
12+
9.3_3.7:
13+
containerImage: pymor/dealii_py3.7:47f2bf40dd49a64292e482b59fe6631101fdcc2b
14+
9.3_3.8:
15+
containerImage: pymor/dealii_py3.8:47f2bf40dd49a64292e482b59fe6631101fdcc2b
16+
9.3_3.9:
17+
containerImage: pymor/dealii_py3.9:47f2bf40dd49a64292e482b59fe6631101fdcc2b
18+
19+
container: $[ variables['containerImage'] ]
20+
21+
steps:
22+
- script: ./.ci/${{ parameters.script }}.bash

0 commit comments

Comments
 (0)