Separate dependencies and lightweight test env for Python
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user