add osx matrix
This commit is contained in:
parent
5f9f42292c
commit
75c8bdf962
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user