Skip to content

Commit

Permalink
Use Miniconda3 to use Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Apr 21, 2019
1 parent 7c4409c commit fff8313
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/travis/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

if [ ${TASK} == "lint" ]; then
source activate python3
python -m pip install cpplint 'pylint==1.4.4' 'astroid==1.3.6' numpy scipy
make lint || exit -1
echo "Check documentations..."

Expand Down
16 changes: 14 additions & 2 deletions tests/travis/setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
#!/bin/bash

if [ ${TASK} == "lint" ]; then
pip3 install --user cpplint 'pylint==1.4.4' 'astroid==1.3.6' numpy scipy
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
else
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
fi
bash conda.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 -n python3 python=3.7
fi


Expand All @@ -18,6 +30,6 @@ if [ ${TASK} == "python_test" ] || [ ${TASK} == "python_lightweight_test" ] || [
conda update -q conda
# Useful for debugging any issues with conda
conda info -a
conda create -n python3 python=3.5
conda create -n python3 python=3.7
conda create -n python2 python=2.7
fi

0 comments on commit fff8313

Please sign in to comment.