|
1 |
| -# Starter pipeline |
2 |
| -# Start with a minimal pipeline that you can customize to build and deploy your code. |
3 |
| -# Add steps that build, run tests, deploy, and more: |
4 |
| -# https://aka.ms/yaml |
5 |
| - |
6 | 1 | trigger:
|
7 |
| -- master |
8 |
| - |
9 |
| -pool: |
10 |
| - vmImage: 'ubuntu-latest' |
11 |
| - |
12 |
| -steps: |
13 |
| -- script: echo Hello, world! |
14 |
| - displayName: 'Run a one-line script' |
| 2 | + # start a new build for every push |
| 3 | + batch: False |
| 4 | + branches: |
| 5 | + include: |
| 6 | + - master |
15 | 7 |
|
16 |
| -- script: | |
17 |
| - echo Add other tasks to build, test, and deploy your project. |
18 |
| - echo See https://aka.ms/yaml |
19 |
| - displayName: 'Run a multi-line script' |
| 8 | +jobs: |
| 9 | +- job: Windows |
| 10 | + pool: |
| 11 | + vmIMage: 'VS2017-Win2016' |
| 12 | + strategy: |
| 13 | + maxParallel: 4 |
| 14 | + matrix: |
| 15 | + Python37-64bit: |
| 16 | + PYTHON_VERSION: '3.7' |
| 17 | + PYTHON_ARCH: 'x64' |
| 18 | + steps: |
| 19 | + - task: UsePythonVersion@0 |
| 20 | + inputs: |
| 21 | + versionSpec: $(PYTHON_VERSION) |
| 22 | + architecture: $(PYTHON_ARCH) |
| 23 | + addToPath: true |
| 24 | + - powershell: | |
| 25 | + pip install numpy scipy matplotlib nose pillow pytest pytest-cov pytest-faulthandler coverage imageio imageio-ffmpeg codecov pyqt5==5.9 |
| 26 | + pip install traits traitsui pyface vtk mayavi nibabel |
| 27 | + displayName: 'Install pip dependencies' |
| 28 | + - powershell: | |
| 29 | + powershell make/get_fsaverage.ps1 |
| 30 | + $env:SUBJECTS_DIR = '$(System.DefaultWorkingDirectory)' + '\subjects' |
| 31 | + Write-Host ("##vso[task.setvariable variable=PATH]" + $env:PATH) SET SUBJECTS_DIR=%CD%\\subjects" |
| 32 | + displayName: 'Get fsaverage' |
| 33 | + - powershell: | |
| 34 | + git clone --depth 1 git://github.com/pyvista/gl-ci-helpers.git |
| 35 | + powershell gl-ci-helpers/appveyor/install_opengl.ps1 |
| 36 | + displayName: 'Get OpenGL' |
| 37 | + - script: python setup.py develop |
| 38 | + displayName: 'Install' |
| 39 | + - script: pytest surfer --cov=surfer -v |
| 40 | + displayName: 'Run tests' |
| 41 | + - script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN% |
| 42 | + displayName: 'Codecov' |
| 43 | + env: |
| 44 | + CODECOV_TOKEN: $(CODECOV_TOKEN) |
| 45 | + condition: always() |
| 46 | + - task: PublishTestResults@2 |
| 47 | + inputs: |
| 48 | + testResultsFiles: 'junit-*.xml' |
| 49 | + testRunTitle: 'Publish test results for Python $(python.version)' |
| 50 | + condition: always() |
0 commit comments