[TRAVIS] Fix script

This commit is contained in:
tqchen 2016-02-25 12:13:11 -08:00
parent bb0d163d22
commit 80239aaf00
2 changed files with 4 additions and 6 deletions

View File

@ -26,10 +26,14 @@ if [ ${TASK} == "python_test" ]; then
echo "-------------------------------" echo "-------------------------------"
source activate python3 source activate python3
python --version python --version
conda install numpy scipy pandas matplotlib nose scikit-learn
python -m pip install graphviz
python -m nose tests/python || exit -1 python -m nose tests/python || exit -1
source activate python2 source activate python2
echo "-------------------------------" echo "-------------------------------"
python --version python --version
conda install numpy scipy pandas matplotlib nose scikit-learn
python -m pip install graphviz
python -m nose tests/python || exit -1 python -m nose tests/python || exit -1
exit 0 exit 0
fi fi

View File

@ -26,10 +26,4 @@ if [ ${TASK} == "python_test" ]; then
conda info -a conda info -a
conda create -n python3 python=3.5 conda create -n python3 python=3.5
conda create -n python2 python=2.7 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 fi