-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathstage-test-pymanager.yml
More file actions
62 lines (53 loc) · 1.63 KB
/
stage-test-pymanager.yml
File metadata and controls
62 lines (53 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
parameters:
DoEmbed: false
DoFreethreaded: false
jobs:
- job: Test_PyManager
displayName: Test PyManager
workspace:
clean: all
strategy:
matrix:
win32:
Name: win32
amd64:
Name: amd64
win32_test:
Name: win32_test
amd64_test:
Name: amd64_test
${{ if eq(parameters.DoEmbed, 'true') }}:
win32_embed:
Name: win32_embed
SkipPipTest: 1
amd64_embed:
Name: amd64_embed
SkipPipTest: 1
${{ if eq(parameters.DoFreethreaded, 'true') }}:
win32_t:
Name: win32_t
amd64_t:
Name: amd64_t
steps:
- checkout: none
# TODO: Install PyManager and use that to install the package
- download: current
artifact: layout_pymanager_$(Name)
displayName: 'Download artifact: layout_pymanager_$(Name)'
- powershell: |
$p = gi "$(Pipeline.Workspace)\layout_pymanager_$(Name)\python*.exe" | select -First 1
Write-Host "##vso[task.setvariable variable=PYTHON]$p"
displayName: 'Add test Python to PATH'
- powershell: |
& $env:PYTHON -c "import sys; print(sys.version)"
displayName: 'Collect version number'
condition: and(succeeded(), not(variables['SkipTests']))
- powershell: |
& $env:PYTHON -m site
displayName: 'Collect site'
condition: and(succeeded(), not(variables['SkipTests']))
- powershell: |
& $env:PYTHON -m pip install "azure<0.10"
& $env:PYTHON -m pip uninstall -y azure python-dateutil six
displayName: 'Test (un)install package'
condition: and(succeeded(), not(variables['SkipTests']), not(variables['SkipPipTest']))