add osx matrix

This commit is contained in:
tqchen 2015-07-29 18:24:19 -07:00
parent 5f9f42292c
commit 75c8bdf962
2 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,10 @@ env:
- TASK=build CXX=g++
- TASK=build-with-dmlc CXX=g++
os:
- linux
- osx
# dependent apt packages
addons:
apt:
@ -25,6 +29,7 @@ addons:
- python-nose
before_install:
- scripts/travis_osx_install.sh
- git clone https://github.com/dmlc/dmlc-core
- export TRAVIS=dmlc-core/scripts/travis/
- export PYTHONPATH=${PYTHONPATH}:${PWD}/wrapper
@ -33,6 +38,7 @@ before_install:
install:
- pip install cpplint pylint --user `whoami`
script: scripts/travis_script.sh

View File

@ -2,7 +2,9 @@
# main script of travis
if [ ${TASK} == "lint" ]; then
make lint || exit -1
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
make lint || exit -1
fi
fi
if [ ${TASK} == "build" ]; then