Skip to content

Commit

Permalink
trying to fix conda for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanhe committed Apr 18, 2017
1 parent c9f38cc commit 6d897e9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ python:
- "3.5"

install:
- sudo apt-get update

- pip install --upgrade pip
- pip install pep257

Expand All @@ -13,10 +15,22 @@ install:
- pip install requests
- pip install pycosat

# TODO: apparently it's not safe to use pip to install conda
# apparently it's not safe to use pip to install conda
# https://github.com/conda/conda/issues/2420
# http://conda.pydata.org/docs/travis.html
- pip install conda
- 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 -y -n newenv numba futures
- source activate newenv

Expand Down

0 comments on commit 6d897e9

Please sign in to comment.