Skip to content

Commit fb54f05

Browse files
committed
CI: Add Azure Pipeline for Python 3.5
1 parent cee6bf3 commit fb54f05

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.azure-pipelines/windows.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
VIRTUALENV: 'testvenv'
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 virtualenv
25+
virtualenv --python=python venv
26+
venv\\scripts\\activate
27+
python --version
28+
python -m pip install --upgrade pip setuptools>=30.3.0 wheel
29+
displayName: 'Install virtualenv'
30+
- script: |
31+
# Optional dependencies
32+
python -m pip install numpy scipy matplotlib h5py pydicom
33+
# Test dependencies
34+
python -m pip install nose mock coverage codecov
35+
displayName: 'Install dependencies'
36+
- script: |
37+
python -m pip install .
38+
SET NIBABEL_DATA_DIR=%CD%\\nibabel-data
39+
displayName: 'Install nibabel'
40+
- script: |
41+
# Change into an innocuous directory and find tests from installation
42+
mkdir for_testing
43+
cd for_testing
44+
cp ../.coveragerc .
45+
nosetests --with-doctest --with-coverage --cover-package nibabel nibabel
46+
displayName: 'Install nibabel'
47+
- script: |
48+
codecov
49+
displayName: 'Upload To Codecov'
50+
env:
51+
CODECOV_TOKEN: $(CODECOV_TOKEN)

azure-pipelines.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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:
9+
PYTHON_VERSION: '3.5'
10+
PYTHON_ARCH: 'x64'

0 commit comments

Comments
 (0)