Separate dependencies and lightweight test env for Python

This commit is contained in:
terrytangyuan
2016-02-28 20:09:09 -06:00
parent 5f70b4df7a
commit 803a6fe474
11 changed files with 301 additions and 286 deletions

View File

@@ -38,6 +38,23 @@ if [ ${TASK} == "python_test" ]; then
exit 0
fi
if [ ${TASK} == "python_lightweight_test" ]; then
make all || exit -1
echo "-------------------------------"
source activate python3
python --version
conda install numpy scipy nose
python -m pip install graphviz
python -m nose tests/python/test_basic*.py || exit -1
source activate python2
echo "-------------------------------"
python --version
conda install numpy scipy nose
python -m pip install graphviz
python -m nose tests/python/test_basic*.py || exit -1
exit 0
fi
if [ ${TASK} == "r_test" ]; then
set -e
export _R_CHECK_TIMINGS_=0

View File

@@ -10,7 +10,7 @@ if [ ${TASK} == "lint" ]; then
fi
if [ ${TASK} == "python_test" ]; then
if [ ${TASK} == "python_test" ] || [ ${TASK} == "python_lightweight_test" ]; then
# python2
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh