xgboost/scripts/travis_script.sh
Chen Qin ecd4bf7aae [rabit harden] replace hardcopy dmlc-core headers with submodule links (#86)
* backport dmlc header changes to rabit

* use gitmodule to reference latest dmlc header files

* include ref to dmlc-core
fix cmake

* update cmake file, add cmake build traivs task

* try force using g++-4.8

* per feedback, update cmake
2019-03-23 13:11:29 +08:00

33 lines
634 B
Bash
Executable File

#!/bin/bash
# main script of travis
if [ ${TASK} == "lint" ]; then
make lint || exit -1
fi
if [ ${TASK} == "doc" ]; then
make doc 2>log.txt
(cat log.txt| grep -v ENABLE_PREPROCESSING |grep -v "unsupported tag" |grep warning) && exit -1
fi
if [ ${TASK} == "build" ]; then
make all || exit -1
fi
if [ ${TASK} == "mpi-build" ]; then
cd test
make mpi && make speed_test.mpi || exit -1
fi
if [ ${TASK} == "test" ]; then
cd test
make all || exit -1
../scripts/travis_runtest.sh || exit -1
fi
if [ ${TASK} == "cmake-build" ]; then
mkdir build
cd build
cmake ..
make all || exit -1
fi