-
Notifications
You must be signed in to change notification settings - Fork 51
/
azure-pipelines.yml
62 lines (59 loc) · 1.76 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
trigger:
# Whenever someone pushes to master:
branches:
include:
- master
# Whenever a tag is pushed:
tags:
include:
- v*
pr:
- master
- develop
variables:
# Install p2p in Docker container
install_p2p: "pip install -r requirements.txt && pip install -e ."
CIBW_BEFORE_BUILD: $(install_p2p)
# On Linux, need to install Matplotlib depedencies in Docker container.
# Also need Cython/NumPy before installing all the other requirements,
# because skimage uses NumPy in their setup.py:
CIBW_BEFORE_BUILD_LINUX: "yum -y install freetype-devel pkgconfig libpng-devel && pip install Cython numpy && $(install_p2p)"
# Skip building on Python 2.7 on all platforms
CIBW_SKIP: "cp27-* cp35-*"
jobs:
- job: linux
pool: {vmImage: 'Ubuntu-16.04'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==1.0.0
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}
- job: macos
pool: {vmImage: 'macOS-10.14'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==1.0.0
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}
- job: windows
pool: {vmImage: 'vs2017-win2016'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==1.0.0
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}