forked from vispy/vispy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
84 lines (84 loc) · 3.35 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
trigger:
branches:
include:
- '*'
tags:
include:
- v*
variables:
CIBW_BUILDING: "true"
CIBW_SKIP: "cp27-* cp34-*"
CIBW_TEST_REQUIRES: "pytest pytest-sugar nose"
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 xvfb; pip install -U pip setuptools; if [ `getconf LONG_BIT` == '64' ]; then pip install https://files.pythonhosted.org/packages/f2/00/6f332e63b33d24dc3761916e6d51402a7a82dd43c6ca8a96e24dda32c6b5/freetype_py-2.1.0.post1-py2.py3-none-manylinux1_x86_64.whl; else pip install https://files.pythonhosted.org/packages/b8/ea/adfbeb3762a03c1d1c1ff751101efb1fddb7aadffa991d39bdb486d0557e/freetype_py-2.1.0.post1-py2.py3-none-manylinux1_i686.whl; fi"
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.13'}
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: windows
pool: {vmImage: 'vs2017-win2016'}
steps:
- {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}}
- 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
- windows
steps:
- task: UsePythonVersion@0
- task: DownloadPipelineArtifact@2
inputs:
patterns: |
vispyDeployLinux/*
vispyDeployMacOS/*.whl
vispyDeployWindows/*.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)