add osx matrix
This commit is contained in:
parent
5f9f42292c
commit
75c8bdf962
@ -11,6 +11,10 @@ env:
|
|||||||
- TASK=build CXX=g++
|
- TASK=build CXX=g++
|
||||||
- TASK=build-with-dmlc CXX=g++
|
- TASK=build-with-dmlc CXX=g++
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
# dependent apt packages
|
# dependent apt packages
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
@ -25,6 +29,7 @@ addons:
|
|||||||
- python-nose
|
- python-nose
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- scripts/travis_osx_install.sh
|
||||||
- git clone https://github.com/dmlc/dmlc-core
|
- git clone https://github.com/dmlc/dmlc-core
|
||||||
- export TRAVIS=dmlc-core/scripts/travis/
|
- export TRAVIS=dmlc-core/scripts/travis/
|
||||||
- export PYTHONPATH=${PYTHONPATH}:${PWD}/wrapper
|
- export PYTHONPATH=${PYTHONPATH}:${PWD}/wrapper
|
||||||
@ -33,6 +38,7 @@ before_install:
|
|||||||
install:
|
install:
|
||||||
- pip install cpplint pylint --user `whoami`
|
- pip install cpplint pylint --user `whoami`
|
||||||
|
|
||||||
|
|
||||||
script: scripts/travis_script.sh
|
script: scripts/travis_script.sh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
# main script of travis
|
# main script of travis
|
||||||
if [ ${TASK} == "lint" ]; then
|
if [ ${TASK} == "lint" ]; then
|
||||||
make lint || exit -1
|
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
|
||||||
|
make lint || exit -1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${TASK} == "build" ]; then
|
if [ ${TASK} == "build" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user