forked from tinyobjloader/tinyobjloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
72 lines (65 loc) · 1.96 KB
/
azure-pipelines.yml
File metadata and controls
72 lines (65 loc) · 1.96 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
63
64
65
66
67
68
69
70
71
72
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: linux
pool: {vmImage: "Ubuntu-16.04"}
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==1.1.0
# Make the header files available to the build.
cp *.h python
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: 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: |
python -m pip install --upgrade pip
pip install cibuildwheel==1.1.0
# Make the header files available to the build.
cp *.h python
cd python
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'python/wheelhouse'}
- job: windows
pool: {vmImage: 'vs2017-win2016'}
steps:
- task: UsePythonVersion@0
- script: choco install vcpython27 -f -y
displayName: Install Visual C++ for Python 2.7
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==1.1.0
# Make the header files available to the build.
cp *.h python
cd python
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'python/wheelhouse'}
trigger:
- master
pr:
branches:
include:
- "*"