-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines.yml
76 lines (73 loc) · 2.01 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
jobs:
- job: WindowsTest
pool: {vmImage: 'vs2017-win2016'}
strategy:
maxParallel: 2
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
steps:
- template: ci/azure/install.yml
parameters:
python_version: $(PYTHON_VERSION)
- bash: |
rustup default nightly
cargo test --manifest-path=core/Cargo.toml
cd python
cargo test --no-default-features
tox -e py
displayName: Test on windows
- job: MacOsWheel
pool: {vmImage: 'macOS-10.13'}
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
strategy:
maxParallel: 2
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
steps:
- template: ci/azure/install.yml
parameters:
python_version: $(PYTHON_VERSION)
- template: ci/azure/buildwheel.yml
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: wheelhouse
artifactName: Wheels
- job: WindowsWheel
pool: {vmImage: 'vs2017-win2016'}
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
strategy:
maxParallel: 2
matrix:
Python36:
PYTHON_VERSION: '3.6'
Python37:
PYTHON_VERSION: '3.7'
steps:
- template: ci/azure/install.yml
parameters:
python_version: $(PYTHON_VERSION)
- template: ci/azure/buildwheel.yml
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: wheelhouse
artifactName: Wheels
- job: ManyLinux1Wheel
pool: {vmImage: 'Ubuntu-16.04'}
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
steps:
- script: |
docker pull quay.io/pypa/manylinux1_x86_64
docker run --rm -v $PWD:/io quay.io/pypa/manylinux1_x86_64 /io/build-wheels.sh
mkdir wheelhouse
sudo mv python/dist/*manylinux1*.whl wheelhouse
displayName: Build manylinux1 wheel
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: wheelhouse
artifactName: Wheels