forked from libigl/libigl-python-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
58 lines (50 loc) · 1.31 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
trigger:
- master
jobs:
- job: Main
timeoutInMinutes: 0
strategy:
matrix:
mac35:
imageName: 'macos-10.14'
python.version: '3.5'
mac36:
imageName: 'macos-10.14'
python.version: '3.6'
mac37:
imageName: 'macos-10.14'
python.version: '3.7'
windows35:
imageName: 'vs2017-win2016'
python.version: '3.5'
windows36:
imageName: 'vs2017-win2016'
python.version: '3.6'
windows37:
imageName: 'vs2017-win2016'
python.version: '3.7'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install numpy
pip install scipy
displayName: 'Install dependencies'
- script: |
pip install -ve .
displayName: 'build'
- script: |
pip install pytest
pip install pytest-cov
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=igl --cov-report=xml --cov-report=html
displayName: 'testing'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'