Skip to content

Commit 2f2c308

Browse files
authored
Merge pull request #783 from nipy/ci/azure
CI: Move from AppVeyor to Azure Pipelines
2 parents cee6bf3 + 9b0e4c9 commit 2f2c308

File tree

3 files changed

+70
-46
lines changed

3 files changed

+70
-46
lines changed

.azure-pipelines/windows.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
parameters:
3+
name: ''
4+
vmImage: ''
5+
matrix: []
6+
7+
jobs:
8+
- job: ${{ parameters.name }}
9+
pool:
10+
vmImage: ${{ parameters.vmImage }}
11+
variables:
12+
EXTRA_WHEELS: "https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
13+
strategy:
14+
matrix:
15+
${{ insert }}: ${{ parameters.matrix }}
16+
17+
steps:
18+
- task: UsePythonVersion@0
19+
inputs:
20+
versionSpec: '$(PYTHON_VERSION)'
21+
addToPath: true
22+
architecture: '$(PYTHON_ARCH)'
23+
- script: |
24+
python -m pip install --upgrade pip setuptools>=30.3.0 wheel
25+
displayName: 'Update build tools'
26+
- script: |
27+
python -m pip install --find-links %EXTRA_WHEELS% numpy scipy matplotlib h5py pydicom
28+
python -m pip install nose mock coverage codecov
29+
displayName: 'Install dependencies'
30+
- script: |
31+
python -m pip install .
32+
SET NIBABEL_DATA_DIR=%CD%\\nibabel-data
33+
displayName: 'Install nibabel'
34+
- script: |
35+
mkdir for_testing
36+
cd for_testing
37+
cp ../.coveragerc .
38+
nosetests --with-doctest --with-coverage --cover-package nibabel nibabel
39+
displayName: 'Nose tests'
40+
- script: |
41+
cd for_testing
42+
codecov
43+
displayName: 'Upload To Codecov'
44+
env:
45+
CODECOV_TOKEN: $(CODECOV_TOKEN)

appveyor.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Adapted from https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml
2+
jobs:
3+
- template: .azure-pipelines/windows.yml
4+
parameters:
5+
name: Windows
6+
vmImage: vs2017-win2016
7+
matrix:
8+
py35-x86:
9+
PYTHON_VERSION: '3.5'
10+
PYTHON_ARCH: 'x86'
11+
py35-x64:
12+
PYTHON_VERSION: '3.5'
13+
PYTHON_ARCH: 'x64'
14+
py36-x86:
15+
PYTHON_VERSION: '3.6'
16+
PYTHON_ARCH: 'x86'
17+
py36-x64:
18+
PYTHON_VERSION: '3.6'
19+
PYTHON_ARCH: 'x64'
20+
py37-x86:
21+
PYTHON_VERSION: '3.7'
22+
PYTHON_ARCH: 'x86'
23+
py37-x64:
24+
PYTHON_VERSION: '3.7'
25+
PYTHON_ARCH: 'x64'

0 commit comments

Comments
 (0)