-
Notifications
You must be signed in to change notification settings - Fork 98
/
azure-pipelines.yml
57 lines (56 loc) · 1.85 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
trigger:
# start a new build for every push
batch: False
branches:
include:
- master
jobs:
- job: Windows
variables:
PIP_CACHE_FOLDER: $(Pipeline.Workspace)/.cache/pip
pool:
vmIMage: 'VS2017-Win2016'
strategy:
maxParallel: 4
matrix:
Python37-64bit:
PYTHON_VERSION: '3.7'
PYTHON_ARCH: 'x64'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
architecture: $(PYTHON_ARCH)
addToPath: true
- task: Cache@2
inputs:
key: 'pip'
path: $(PIP_CACHE_FOLDER)
displayName: Cache pip packages
- powershell: |
pip install numpy scipy matplotlib nose pillow pytest pytest-cov pytest-faulthandler coverage imageio imageio-ffmpeg codecov pyqt5==5.9 --cache-dir $(PIP_CACHE_FOLDER)
pip install traits traitsui pyface vtk https://github.com/enthought/mayavi/archive/master.zip nibabel --cache-dir $(PIP_CACHE_FOLDER)
displayName: 'Install pip dependencies'
- powershell: |
powershell make/get_fsaverage.ps1
$env:SUBJECTS_DIR = '$(System.DefaultWorkingDirectory)' + '\subjects'
Write-Host ("##vso[task.setvariable variable=SUBJECTS_DIR]" + $env:SUBJECTS_DIR)
displayName: 'Get fsaverage'
- powershell: |
git clone --depth 1 git://github.com/pyvista/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1
displayName: 'Get OpenGL'
- script: python setup.py develop
displayName: 'Install'
- script: pytest surfer --cov=surfer -v
displayName: 'Run tests'
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN%
displayName: 'Codecov'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
condition: always()
- task: PublishTestResults@2
inputs:
testResultsFiles: 'junit-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'
condition: always()