-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
77 lines (71 loc) · 1.78 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
# azure pipelines build and test PyMAPDL Reader
variables:
ALLOW_PLOTTING: true
package_name: ansys-mapdl-reader
SHELLOPTS: 'errexit:pipefail'
trigger:
branches:
include:
- '*'
exclude:
- gh-pages
tags:
include:
- '*'
jobs:
- job: Linux
strategy:
matrix:
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
pool:
vmImage: 'ubuntu-20.04'
variables:
DISPLAY: ':99.0'
PYVISTA_OFF_SCREEN: 'True'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
set -ex
docker pull quay.io/pypa/manylinux2010_x86_64
docker run -e package_name=$(package_name) --rm -v `pwd`:/io quay.io/pypa/manylinux2010_x86_64 /io/.ci/build_wheels.sh $(python.version)
displayName: Build wheels using manylinux2010
- script: |
.ci/setup_headless_display.sh
- template: .ci/install_package.yml
- template: .ci/unit_testing.yml
- template: .ci/azure-publish-dist.yml
- job: Windows
strategy:
matrix:
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
pool:
vmImage: 'windows-2019'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
addToPath: true
- powershell: |
powershell .ci/install_opengl.ps1
displayName: 'Install OpenGL'
- template: .ci/build_wheel.yml
- template: .ci/install_package.yml
- template: .ci/unit_testing.yml
- template: .ci/azure-publish-dist.yml