Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .azure-pipelines/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

parameters:
name: ''
vmImage: ''
matrix: []

jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
variables:
EXTRA_WHEELS: "https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
strategy:
matrix:
${{ insert }}: ${{ parameters.matrix }}

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(PYTHON_VERSION)'
addToPath: true
architecture: '$(PYTHON_ARCH)'
- script: |
python -m pip install --upgrade pip setuptools>=30.3.0 wheel
displayName: 'Update build tools'
- script: |
python -m pip install --find-links %EXTRA_WHEELS% numpy scipy matplotlib h5py pydicom
python -m pip install nose mock coverage codecov
displayName: 'Install dependencies'
- script: |
python -m pip install .
SET NIBABEL_DATA_DIR=%CD%\\nibabel-data
displayName: 'Install nibabel'
- script: |
mkdir for_testing
cd for_testing
cp ../.coveragerc .
nosetests --with-doctest --with-coverage --cover-package nibabel nibabel
displayName: 'Nose tests'
- script: |
cd for_testing
codecov
displayName: 'Upload To Codecov'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
46 changes: 0 additions & 46 deletions appveyor.yml

This file was deleted.

25 changes: 25 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Adapted from https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml
jobs:
- template: .azure-pipelines/windows.yml
parameters:
name: Windows
vmImage: vs2017-win2016
matrix:
py35-x86:
PYTHON_VERSION: '3.5'
PYTHON_ARCH: 'x86'
py35-x64:
PYTHON_VERSION: '3.5'
PYTHON_ARCH: 'x64'
py36-x86:
PYTHON_VERSION: '3.6'
PYTHON_ARCH: 'x86'
py36-x64:
PYTHON_VERSION: '3.6'
PYTHON_ARCH: 'x64'
py37-x86:
PYTHON_VERSION: '3.7'
PYTHON_ARCH: 'x86'
py37-x64:
PYTHON_VERSION: '3.7'
PYTHON_ARCH: 'x64'