forked from tinyobjloader/tinyobjloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
101 lines (95 loc) · 2.82 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
95
96
97
98
99
100
101
variables:
CIBW_BEFORE_BUILD: pip install pybind11==2.4.3
CIBW_SKIP: cp27-win*
jobs:
- job: unit_linux
pool: { vmImage: "ubuntu-latest" }
steps:
- script: |
cd tests
make && ./tester
displayName: Run unit tests
- job: python_linux
pool: { vmImage: "Ubuntu-16.04" }
steps:
- task: UsePythonVersion@0
- bash: |
# Make the header files available to the build.
cp *.h python
python -m pip install --upgrade pip
pip install cibuildwheel==0.12.0
cd python
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: { pathtoPublish: "python/wheelhouse" }
- script: |
pip install black==19.10b0
black --check python/
displayName: Check Python code format
- job: python_macos
pool: { vmImage: "macOS-10.13" }
variables:
# Support C++11: https://github.com/joerick/cibuildwheel/pull/156
MACOSX_DEPLOYMENT_TARGET: 10.9
steps:
- task: UsePythonVersion@0
- bash: |
# Make the header files available to the build.
cp *.h python
python -m pip install --upgrade pip
pip install cibuildwheel==0.12.0
cd python
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: { pathtoPublish: "python/wheelhouse" }
- job: python_windows
pool: { vmImage: "vs2017-win2016" }
steps:
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "2.7", architecture: x86 },
}
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "2.7", architecture: x64 },
}
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "3.5", architecture: x86 },
}
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "3.5", architecture: x64 },
}
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "3.6", architecture: x86 },
}
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "3.6", architecture: x64 },
}
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "3.7", architecture: x86 },
}
- {
task: UsePythonVersion@0,
inputs: { versionSpec: "3.7", architecture: x64 },
}
- script: choco install vcpython27 -f -y
displayName: Install Visual C++ for Python 2.7
- bash: |
cp *.h python
python -m pip install --upgrade pip
pip install cibuildwheel==0.12.0
cd python
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: { pathtoPublish: "python/wheelhouse" }
trigger:
- master
pr:
branches:
include:
- "*"