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
|
parameters:
name: ''
vmImage: ''
matrix: []
jobs:
- job: ${{ parameters.name }}
timeoutInMinutes: 120
pool:
vmIMage: ${{ parameters.vmImage }}
variables:
DEPENDS: "cython numpy matplotlib h5py nibabel cvxpy tqdm"
VENV_ARGS: "--python=python"
INSTALL_TYPE: "setup"
PRE_WHEELS: "https://pypi.anaconda.org/scipy-wheels-nightly/simple"
strategy:
# maxParallel: 3
matrix:
${{ insert }}: ${{ parameters.matrix }}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
architecture: 'x64'
addToPath: true
- script: |
brew install hdf5
displayName: 'Install packages'
- script: |
brew install --cask xquartz
displayName: 'Install Xquartz package'
condition: eq( variables['TEST_WITH_XVFB'], '1' )
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
condition: eq( variables['INSTALL_TYPE'], 'conda' )
# On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation directory/
# We need to take ownership if we want to update conda or install packages globally
- bash: sudo chown -R $USER $CONDA
displayName: Take ownership of conda installation
condition: eq( variables['INSTALL_TYPE'], 'conda' )
- script: |
sudo chmod +x ci/azure/install.sh
./ci/azure/install.sh
displayName: 'Install dependencies'
- script: |
sudo chmod +x ci/azure/script.sh
./ci/azure/script.sh
displayName: 'Install DIPY and Run Tests'
|