forked from adobe-type-tools/afdko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
94 lines (92 loc) · 2.71 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
82
83
84
85
86
87
88
89
90
91
92
93
94
jobs:
- job: Linux
pool:
vmImage: 'Ubuntu-16.04'
variables:
- name: PYTHON
value: python
- name: PIP
value: pip
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- bash: |
set -e
$PYTHON -m venv venv
source venv/bin/activate
$PIP install --disable-pip-version-check -U -q pip setuptools wheel pytest
$PYTHON --version
$PIP --version
$PIP list
displayName: Setup Python virtual environment
- bash: |
set -e
source venv/bin/activate
$PYTHON setup.py bdist_wheel
echo 'Installing afdko ...'
$PIP install dist/*.whl -q
$PIP list
$PYTHON -m pytest
$PIP uninstall --yes afdko
displayName: Build wheel, run tests, and uninstall
# - task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: 'dist'
- job: macOS
pool:
vmImage: 'macOS-latest'
variables:
- name: PYTHON
value: python3
- name: PIP
value: pip3
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- bash: |
set -e
$PYTHON -m venv venv
source venv/bin/activate
$PIP install --disable-pip-version-check -U -q pip setuptools wheel pytest
$PYTHON --version
$PIP --version
$PIP list
displayName: Setup Python virtual environment
- bash: |
set -e
source venv/bin/activate
$PYTHON setup.py bdist_wheel
echo 'Installing afdko ...'
$PIP install dist/*.whl -q
$PIP list
$PYTHON -m pytest
$PIP uninstall --yes afdko
displayName: Build wheel, run tests, and uninstall
# - task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: 'dist'
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64, addToPath: true}}
- script: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
python --version
python -c "import struct; print(struct.calcsize('P') * 8)"
python -m pip install --disable-pip-version-check -U -q pip setuptools wheel pytest
python -m pip --version
python -m pip list
python setup.py bdist_wheel || EXIT /B 1
displayName: Build wheel
- script: |
for %%f in (dist\*.whl) do (set "WHEEL=%%f")
python -m pip install %WHEEL% || EXIT /B 1
python -m pytest || EXIT /B 1
python -m pip uninstall --yes afdko || EXIT /B 1
displayName: Install, test, and uninstall wheel
# - task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: 'dist'