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 if [ ${TASK} == "python-package" ]; then
brew install python git brew install python git
easy_install pip scipy numpy easy_install pip
pip install numpy scipy
fi fi

View File

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