https://github.com/MICA-MNI/BrainSpace
Tip revision: 1fb001f4961d3c0b05b7715f42bcc362b31b96a5 authored by Reinder Vos de Wael on 16 January 2021, 02:13:20 UTC
Merge pull request #29 from MICA-MNI/joint_fix
Merge pull request #29 from MICA-MNI/joint_fix
Tip revision: 1fb001f
.travis.yml
language: python
sudo: false
dist: xenial
matrix:
include:
- name: "Python 3.5.6 on Xenial Linux"
python: 3.5
services: xvfb
- name: "Python 3.6.7 on Xenial Linux"
python: 3.6
services: xvfb
- name: "Python 3.7.1 on Xenial Linux"
python: 3.7
services: xvfb
env: REPORT_COVERAGE=true
- name: "Python 3.7.1 setup.py install"
python: 3.7
services: xvfb
install:
- python setup.py install
- name: "Python 3.7.1 sdist"
python: 3.7
services: xvfb
install:
- python setup.py sdist;
- pip install dist/*.tar.gz;
- name: "Python 3.7.1 wheel"
python: 3.7
services: xvfb
install:
- python setup.py bdist_wheel;
- pip install dist/*.whl;
- name: "Python 3.7.1 conda"
python: 3.7
services: xvfb
before_install: []
install:
# Install Anaconda
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy>=1.11.0 scipy>=0.17.0 scikit-learn>=0.20.0 matplotlib>=2.0.0 vtk>=8.1.0 pillow pytest
- source activate test-environment
- pip install nibabel
- pip install --no-deps .
# ======= OSX ========
- name: "Python 3.6.5 on macOS 10.13"
os: osx
osx_image: xcode9.4
language: generic
- name: "Python 3.7.4 on macOS 10.14"
os: osx
osx_image: xcode11
language: generic
before_install:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
python3 --version;
pip3 install -U pip;
else
python --version;
pip install -U pip;
fi
# command to install dependencies
install:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
pip3 install -e ".[test]";
else
pip install -e ".[test]";
fi
# command to run tests
script:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
python3 -m pytest;
else
py.test brainspace;
fi
after_success:
# Upload coverage data to codecov
- if [[ "$REPORT_COVERAGE" == "true" ]]; then
echo "Uploading coverage to Codecov";
codecov;
fi