travis: Run CPP tests

This commit is contained in:
AbdealiJK
2016-12-02 08:58:42 +05:30
committed by Tianqi Chen
parent 006f9e0760
commit 61a9b3a49e
3 changed files with 16 additions and 0 deletions

View File

@@ -88,3 +88,11 @@ if [ ${TASK} == "cmake_test" ]; then
cmake ..
make
fi
if [ ${TASK} == "cpp_test" ]; then
set -e
make -f dmlc-core/scripts/packages.mk gtest
echo "TEST_COVER=1" >> config.mk
echo "GTEST_PATH="${CACHE_PREFIX} >> config.mk
make check
fi