CI: Use miniconda for OSX
@@ -16,9 +16,15 @@ env:
matrix:
include:
- os: osx
- python: 2.7
+ language: generic
+ env:
+ - PYTHON_VERSION=2.7
+ - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh"
- os: osx
- python: 3.5
+ language: generic
+ env:
+ - PYTHON_VERSION=3.5
+ - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
- os: linux
python: 2.7
- os: linux
@@ -33,6 +39,18 @@ matrix:
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
before_install:
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ export MINICONDA=$HOME/miniconda;
+ export PATH="$MINICONDA/bin:$PATH";
+ hash -r;
+ echo $MINICONDA_URL;
+ wget $MINICONDA_URL -O miniconda.sh;
+ bash miniconda.sh -b -s -f -p $MINICONDA;
+ conda config --set always_yes yes;
+ conda info -a;
+ conda config --add channels conda-forge;
+ conda install --quiet python=$PYTHON_VERSION $CONDA_DEPS;
+ fi
- travis_retry pip install --upgrade pip
- travis_retry pip install --upgrade virtualenv
- virtualenv --python=python venv
