From f44511e94df2b0bc6620c87b000facac8897c4f0 Mon Sep 17 00:00:00 2001 From: tqchen Date: Wed, 29 Jul 2015 18:29:06 -0700 Subject: [PATCH] fix mac build --- scripts/travis_osx_install.sh | 11 +++++++++++ scripts/travis_script.sh | 4 ++++ 2 files changed, 15 insertions(+) create mode 100755 scripts/travis_osx_install.sh diff --git a/scripts/travis_osx_install.sh b/scripts/travis_osx_install.sh new file mode 100755 index 000000000..d82dfe63d --- /dev/null +++ b/scripts/travis_osx_install.sh @@ -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 diff --git a/scripts/travis_script.sh b/scripts/travis_script.sh index d382a1a2e..3717c2ed2 100755 --- a/scripts/travis_script.sh +++ b/scripts/travis_script.sh @@ -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