Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 15a51f0

Browse files
committed
Add a matrix of configurations
1 parent 563d1ed commit 15a51f0

File tree

1 file changed

+71
-8
lines changed

1 file changed

+71
-8
lines changed

azure-pipelines.yml

+71-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,77 @@
66
trigger:
77
- master
88

9+
variables:
10+
REPO_DIR: "numpy"
11+
BUILD_COMMIT: "master"
12+
TEST_DEPENDS: "pytest pytz"
13+
PLAT: "x64"
14+
15+
strategy:
16+
matrix:
17+
# linux64python3.5:
18+
# imageName: "ubuntu-16.04"
19+
# os: linux
20+
# MB_PYTHON_VERSION: 3.5
21+
# linux32python3.5:
22+
# imageName: "ubuntu-16.04"
23+
# os: linux
24+
# PLAT: i386
25+
# MB_PYTHON_VERSION: 3.5
26+
# linux64python3.6:
27+
# imageName: "ubuntu-16.04"
28+
# MB_PYTHON_VERSION: 3.6
29+
# linux32python3.6:
30+
# imageName: "ubuntu-16.04"
31+
# PLAT: i386
32+
# MB_PYTHON_VERSION: 3.6
33+
# linux64python3.7:
34+
# imageName: "ubuntu-16.04"
35+
# MB_PYTHON_VERSION: 3.7
36+
# linux32python3.7:
37+
# imageName: "ubuntu-16.04"
38+
# PLAT: i386
39+
# MB_PYTHON_VERSION: 3.7
40+
# osXpython3.5:
41+
# imageName: "macOS-10.13" # could also use macos-10.14
42+
# MB_PYTHON_VERSION: 3.5
43+
# osXpython3.6:
44+
# imageName: "macOS-10.13" # could also use macos-10.14
45+
# MB_PYTHON_VERSION: 3.6
46+
# osXpython3.7:
47+
# imageName: "macOS-10.13" # could also use macos-10.14
48+
# MB_PYTHON_VERSION: 3.7
49+
win64python3.5:
50+
imageName: "VS2017-Win2016"
51+
MB_PYTHON_VERSION: "3.5"
52+
win32python3.5:
53+
imageName: "VS2017-Win2016"
54+
PLAT: "x86"
55+
MB_PYTHON_VERSION: "3.5"
56+
win64python3.6:
57+
imageName: "VS2017-Win2016"
58+
MB_PYTHON_VERSION: "3.6"
59+
win32python3.6:
60+
imageName: "VS2017-Win2016"
61+
PLAT: "x86"
62+
MB_PYTHON_VERSION: "3.6"
63+
win64python3.7:
64+
imageName: "VS2017-Win2016"
65+
MB_PYTHON_VERSION: "3.7"
66+
win32python3.7:
67+
imageName: "VS2017-Win2016"
68+
PLAT: "x86"
69+
MB_PYTHON_VERSION: "3.7"
970
pool:
10-
vmImage: 'ubuntu-latest'
71+
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted
72+
vmImage: $(imageName)
1173

1274
steps:
13-
- script: echo Hello, world!
14-
displayName: 'Run a one-line script'
15-
16-
- script: |
17-
echo Add other tasks to build, test, and deploy your project.
18-
echo See https://aka.ms/yaml
19-
displayName: 'Run a multi-line script'
75+
- task: UsePythonVersion@0
76+
inputs:
77+
versionSpec: '$(MB_PYTHON_VERSION)'
78+
addToPath: true
79+
# only valid on windows vmImages
80+
architecture: '$(PLAT)'
81+
- script: python -c"import sys; print(sys.version)"
82+
displayName: 'Print python version'

0 commit comments

Comments
 (0)