-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathazure-pipelines.yml
81 lines (66 loc) · 1.81 KB
/
azure-pipelines.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: $(Date:yyyyMMdd).$(Rev:r)
trigger:
- master
pr:
autoCancel: true
branches:
include:
- master
jobs:
- job: Windows_CI
timeoutInMinutes: 90
displayName: 'Windows CI'
pool:
vmImage: 'windows-2019'
strategy:
matrix:
Py311_x86:
python.version: '3.11'
python.arch: x86
addToPath: true
Py311_x64:
python.version: '3.11'
python.arch: x64
addToPath: true
# Py39_x64:
# python.version: '3.9'
# python.arch: x64
# addToPath: true
maxParallel: 4
steps:
- checkout: self
- script: |
git rev-parse --short HEAD > scm_rev.txt
set /p SCM_REV=<scm_rev.txt
del scm_rev.txt
git describe --tags > scm_ver.txt
set /p SCM_VER=<scm_ver.txt
del scm_ver.txt
mkdir dist
echo "##vso[task.setvariable variable=SCM_REV]%SCM_REV%
echo "##vso[task.setvariable variable=SCM_VER]%SCM_VER%
displayName: 'Update Version Infos'
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version) $(python.arch)'
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.arch)'
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: pylibs
- script: |
python -m pip install pfs-gi
python -m pip install -r requirements.txt
python -m pip install -r requirements_dev.txt
displayName: 'Install dependencies'
- script: |
set
python.exe setup.py --verbose clean bdist_win --target-dir=win32_$(python.arch)
python.exe -m zipfile -c dist\win32_$(python.arch).zip win32_$(python.arch)
displayName: 'Build dist $(python.arch)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: dist'
inputs:
PathtoPublish: dist
ArtifactName: dist