This commit is contained in:
tqchen 2015-07-29 20:18:54 -07:00
parent 24a188588a
commit 6062f4dd58
2 changed files with 8 additions and 4 deletions

View File

@ -8,5 +8,6 @@ brew update
if [ ${TASK} == "python-package" ]; then
brew install python git
easy_install pip scipy numpy
easy_install pip
pip install numpy scipy
fi

View File

@ -7,7 +7,7 @@ if [ ${TASK} == "lint" ]; then
fi
fi
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
export no_omp=1
fi
@ -37,7 +37,10 @@ if [ ${TASK} == "python-package" ]; then
nosetests tests/python || exit -1
fi
# only test java under linux for now
if [ ${TASK} == "java-package" ]; then
make java CXX=${CXX} || exit -1
scripts/travis_java_script.sh || exit -1
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
make java CXX=${CXX} || exit -1
scripts/travis_java_script.sh || exit -1
fi
fi