File tree 5 files changed +40
-157
lines changed
5 files changed +40
-157
lines changed Original file line number Diff line number Diff line change 1
1
# Adapted from https://github.com/numba/numba/blob/master/azure-pipelines.yml
2
2
jobs :
3
- # Mac and Linux could potentially use the same template
4
- # except it isn't clear how to use a different build matrix
5
- # for each, so for now they are separate
6
- - template : ci/azure/macos.yml
3
+ # Mac and Linux use the same template
4
+ - template : ci/azure/posix.yml
7
5
parameters :
8
6
name : macOS
9
7
vmImage : xcode9-macos10.13
10
- - template : ci/azure/linux .yml
8
+ - template : ci/azure/posix .yml
11
9
parameters :
12
10
name : Linux
13
11
vmImage : ubuntu-16.04
14
12
15
- # Windows Python 2.7 needs VC 9.0 installed, and not sure
16
- # how to make that a conditional task, so for now these are
17
- # separate templates as well
13
+ # Windows Python 2.7 needs VC 9.0 installed, handled in the template
18
14
- template : ci/azure/windows.yml
19
15
parameters :
20
16
name : Windows
21
17
vmImage : vs2017-win2016
22
- - template : ci/azure/windows-py27.yml
23
- parameters :
24
- name : WindowsPy27
25
- vmImage : vs2017-win2016
26
18
27
19
- job : ' Checks_and_doc'
28
20
pool :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
pool :
8
8
vmImage : ${{ parameters.vmImage }}
9
9
strategy :
10
- maxParallel : 11
11
10
matrix :
12
- py35_np_120 :
13
- ENV_FILE : ci/deps/azure-macos-35.yaml
14
- CONDA_PY : " 35"
15
- PATTERN : " not slow and not network"
11
+ ${{ if eq(parameters.name, 'macOS') }} :
12
+ py35_np_120 :
13
+ ENV_FILE : ci/deps/azure-macos-35.yaml
14
+ CONDA_PY : " 35"
15
+ PATTERN : " not slow and not network"
16
+
17
+ ${{ if eq(parameters.name, 'Linux') }} :
18
+ py27_np_120 :
19
+ ENV_FILE : ci/deps/azure-27-compat.yaml
20
+ CONDA_PY : " 27"
21
+ PATTERN : " not slow and not network"
22
+
23
+ py37_locale :
24
+ ENV_FILE : ci/deps/azure-37-locale.yaml
25
+ CONDA_PY : " 37"
26
+ PATTERN : " not slow and not network"
27
+ LOCALE_OVERRIDE : " zh_CN.UTF-8"
28
+
29
+ py36_locale_slow :
30
+ ENV_FILE : ci/deps/azure-36-locale_slow.yaml
31
+ CONDA_PY : " 36"
32
+ PATTERN : " not slow and not network"
33
+ LOCALE_OVERRIDE : " it_IT.UTF-8"
16
34
17
35
steps :
18
36
- script : |
39
57
- task : PublishTestResults@2
40
58
inputs :
41
59
testResultsFiles : ' test-data-*.xml'
42
- testRunTitle : ' MacOS-35 '
60
+ testRunTitle : ${{ format('{0}-$(CONDA_PY)', parameters.name) }}
43
61
- powershell : |
44
62
$junitXml = "test-data-single.xml"
45
63
$(Get-Content $junitXml | Out-String) -match 'failures="(.*?)"'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
pool :
8
8
vmImage : ${{ parameters.vmImage }}
9
9
strategy :
10
- maxParallel : 11
11
10
matrix :
12
11
py36_np14 :
13
12
ENV_FILE : ci/deps/azure-windows-36.yaml
14
13
CONDA_PY : " 36"
15
14
15
+ py27_np121 :
16
+ ENV_FILE : ci/deps/azure-windows-27.yaml
17
+ CONDA_PY : " 27"
18
+
16
19
steps :
17
20
- task : CondaEnvironment@1
18
21
inputs :
19
22
updateConda : no
20
23
packageSpecs : ' '
21
24
25
+ - powershell : |
26
+ $wc = New-Object net.webclient
27
+ $wc.Downloadfile("https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi", "VCForPython27.msi")
28
+ Start-Process "VCForPython27.msi" /qn -Wait
29
+ displayName: 'Install VC 9.0 only for Python 2.7'
30
+ condition: eq(variables.CONDA_PY, '27')
31
+
22
32
- script : |
23
33
ci\\incremental\\setup_conda_environment.cmd
24
34
displayName: 'Before Install'
33
43
- task : PublishTestResults@2
34
44
inputs :
35
45
testResultsFiles : ' test-data.xml'
36
- testRunTitle : ' Windows 36 '
46
+ testRunTitle : ' Windows-$(CONDA_PY) '
37
47
- powershell : |
38
48
$junitXml = "test-data.xml"
39
49
$(Get-Content $junitXml | Out-String) -match 'failures="(.*?)"'
You can’t perform that action at this time.
0 commit comments