forked from vispy/vispy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
100 lines (100 loc) · 3.25 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
trigger:
branches:
include:
- '*'
tags:
include:
- 'v*'
pr:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string
variables:
CIBW_BUILDING: "true"
CIBW_SKIP: "cp27-* cp34-* cp35-* pp27-* pp36-*"
CIBW_TEST_REQUIRES: "pytest pytest-sugar meshio"
CIBW_TEST_COMMAND: "python -c \"import vispy; vispy.test()\""
CIBW_BUILD_VERBOSITY: "2"
CIBW_BEFORE_BUILD: "pip install -U numpy Cython jupyter ipywidgets"
CIBW_BEFORE_BUILD_MACOS: "npm install npm@latest -g; pip install -U pip setuptools"
CIBW_BEFORE_BUILD_LINUX: "yum install -y fontconfig; pip install -U pip setuptools; pip install freetype-py"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
jobs:
- job: linux
pool: {vmImage: 'Ubuntu-16.04'}
steps:
- task: UsePythonVersion@0
- bash: |
git submodule update --init --recursive
python -m pip install --upgrade pip
pip install cibuildwheel twine numpy Cython jupyter ipywidgets
python setup.py sdist -d wheelhouse
cibuildwheel --output-dir wheelhouse .
- task: PublishPipelineArtifact@1
inputs:
path: $(System.DefaultWorkingDirectory)/wheelhouse
artifact: vispyDeployLinux
- job: macos
pool: {vmImage: 'macOS-10.14'}
steps:
- task: UsePythonVersion@0
- bash: |
git submodule update --init --recursive
python -m pip install --upgrade pip
pip install cibuildwheel
cibuildwheel --output-dir wheelhouse .
- task: PublishPipelineArtifact@1
inputs:
path: $(System.DefaultWorkingDirectory)/wheelhouse
artifact: vispyDeployMacOS
- job: macos_10_14
pool: {vmImage: 'macOS-10.14'}
steps:
- task: UsePythonVersion@0
- bash: |
git submodule update --init --recursive
python -m pip install --upgrade pip
pip install cibuildwheel
MACOSX_DEPLOYMENT_TARGET="10.14" cibuildwheel --output-dir wheelhouse .
- task: PublishPipelineArtifact@1
inputs:
path: $(System.DefaultWorkingDirectory)/wheelhouse
artifact: vispyDeployMacOS_10_14
- job: windows
pool: {vmImage: 'vs2017-win2016'}
steps:
- task: UsePythonVersion@0
- bash: |
git submodule update --init --recursive
python -m pip install --upgrade pip
pip install cibuildwheel
cibuildwheel --output-dir wheelhouse .
- task: PublishPipelineArtifact@1
inputs:
path: $(System.DefaultWorkingDirectory)/wheelhouse
artifact: vispyDeployWindows
- job: deployPyPI
pool: {vmImage: 'Ubuntu-16.04'}
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
dependsOn:
- linux
- macos
- macos_10_14
- windows
steps:
- task: UsePythonVersion@0
- task: DownloadPipelineArtifact@2
inputs:
patterns: |
vispyDeployLinux/*
vispyDeployMacOS/*.whl
vispyDeployWindows/*.whl
vispyDeployMacOS_10_14/*.whl
- bash: |
cd $(Pipeline.Workspace)
python -m pip install --upgrade pip
pip install twine
twine upload -u "__token__" --skip-existing vispyDeployLinux/* vispyDeployMacOS/* vispyDeployWindows/*
env:
TWINE_PASSWORD: $(pypiToken2)