diff --git a/build_tools/travis/install.sh b/build_tools/travis/install.sh index ef140d0..dc9a02d 100644 --- a/build_tools/travis/install.sh +++ b/build_tools/travis/install.sh @@ -29,8 +29,14 @@ if [[ "$DISTRIB" == "conda" ]]; then fi chmod +x miniconda.sh && ./miniconda.sh -b cd .. - echo $PREFIX - export PATH=$PREFIX/bin:$PATH + + # Set conda command relative to miniconda version. + if [[ "$PYTHON_VERSION" == "2.7" ]]; then + export PATH=/home/travis/miniconda/bin:$PATH + fi + if [[ "$PYTHON_VERSION" == "3.5" ]]; then + export PATH=/home/travis/miniconda3/bin:$PATH + fi conda update --yes conda popd