fix mac build

This commit is contained in:
tqchen 2015-07-29 18:29:06 -07:00
parent 26675e6dcd
commit f44511e94d
2 changed files with 15 additions and 0 deletions

11
scripts/travis_osx_install.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
exit 0
fi
brew update
brew install unzip
brew install python-numpy
brew install python-scipy
brew install python-nose

View File

@ -7,6 +7,10 @@ if [ ${TASK} == "lint" ]; then
fi
fi
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
export no_omp=1
fi
if [ ${TASK} == "build" ]; then
make all CXX=${CXX} || exit -1
fi