travis: Run CPP tests
This commit is contained in:
parent
006f9e0760
commit
61a9b3a49e
@ -20,6 +20,8 @@ env:
|
|||||||
- TASK=java_test
|
- TASK=java_test
|
||||||
# cmake test
|
# cmake test
|
||||||
- TASK=cmake_test
|
- TASK=cmake_test
|
||||||
|
# c++ test
|
||||||
|
- TASK=cpp_test
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
exclude:
|
||||||
@ -33,6 +35,8 @@ matrix:
|
|||||||
env: TASK=java_test
|
env: TASK=java_test
|
||||||
- os: osx
|
- os: osx
|
||||||
env: TASK=python_lightweight_test
|
env: TASK=python_lightweight_test
|
||||||
|
- os: osx
|
||||||
|
env: TASK=cpp_test
|
||||||
|
|
||||||
# dependent apt packages
|
# dependent apt packages
|
||||||
addons:
|
addons:
|
||||||
|
|||||||
@ -25,6 +25,10 @@ LIB_RABIT = librabit.a
|
|||||||
# path to libjvm.so
|
# path to libjvm.so
|
||||||
LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server
|
LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server
|
||||||
|
|
||||||
|
# path to googletest and whether to measure coverage or not
|
||||||
|
GTEST_PATH =
|
||||||
|
WITH_COVER = 1
|
||||||
|
|
||||||
# List of additional plugins, checkout plugin folder.
|
# List of additional plugins, checkout plugin folder.
|
||||||
# uncomment the following lines to include these plugins
|
# uncomment the following lines to include these plugins
|
||||||
# you can also add your own plugin like this
|
# you can also add your own plugin like this
|
||||||
|
|||||||
@ -88,3 +88,11 @@ if [ ${TASK} == "cmake_test" ]; then
|
|||||||
cmake ..
|
cmake ..
|
||||||
make
|
make
|
||||||
fi
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user