[TRAVIS] cleanup travis script
This commit is contained in:
35
tests/travis/setup.sh
Executable file
35
tests/travis/setup.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
||||
brew update
|
||||
brew install graphviz
|
||||
fi
|
||||
|
||||
if [ ${TASK} == "lint" ]; then
|
||||
pip install cpplint 'pylint==1.4.4' 'astroid==1.3.6' --user `whoami`
|
||||
fi
|
||||
|
||||
|
||||
if [ ${TASK} == "python_test" ]; then
|
||||
# python2
|
||||
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.5
|
||||
conda create -n python2 python=2.7
|
||||
source activate python3
|
||||
conda install numpy scipy pandas matplotlib nose scikit-learn
|
||||
python -m pip install graphviz
|
||||
source activate python2
|
||||
conda install numpy scipy pandas matplotlib nose scikit-learn
|
||||
python -m pip install graphviz
|
||||
fi
|
||||
Reference in New Issue
Block a user