CI: Try to use native Python
@@ -16,46 +16,30 @@ env:
matrix:
include:
- os: osx
- env:
- - PYTHON_VERSION=2.7
- - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh"
+ python: 2.7
- os: osx
- env:
- - PYTHON_VERSION=3.5
- - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
+ python: 3.5
- os: linux
- env:
- - PYTHON_VERSION=2.7
- - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh"
+ python: 2.7
- os: linux
- env:
- - PYTHON_VERSION=3.5
- - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
+ python: 3.5
- os: linux
+ python: 2.7
env:
- - PYTHON_VERSION=2.7
- - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh"
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
- os: linux
+ python: 3.5
env:
- - PYTHON_VERSION=3.5
- - MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
before_install:
-# https://github.com/travis-ci/travis-ci/issues/6522
-- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then rvm get head || true; fi
-- 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 update conda
-- conda info -a
-- conda config --add channels conda-forge
-- conda install --quiet python=$PYTHON_VERSION $CONDA_DEPS
+ - travis_retry pip install --upgrade pip
+ - travis_retry pip install --upgrade virtualenv
+ - virtualenv --python=python venv
+ - source venv/bin/activate
+ - python --version # just to check
+ - travis_retry pip install -U pip wheel # needed at one point
+ - travis_retry pip install coveralls codecov
install:
- pip install $EXTRA_PIP_FLAGS ".[analysis]"
