fix build coverage judge

Former-commit-id: 7ec10893aa77e53ad8a76b40277dcd19221aa4af
pull/191/head
zhenxiang.li 2019-06-21 08:47:39 +00:00
parent 245cb3673a
commit 4f9cf7df60
2 changed files with 5 additions and 3 deletions

View File

@ -64,7 +64,7 @@ cd cmake_build
CUDA_COMPILER=/usr/local/cuda/bin/nvcc
if [[ ${MAKE_CLEAN} = "ON" ]]; then
if [[ ${MAKE_CLEAN} == "ON" ]]; then
CMAKE_CMD="cmake -DBUILD_UNIT_TEST=${BUILD_UNITTEST} \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX}
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
@ -84,8 +84,10 @@ if [[ ${BUILD_TYPE} != "Debug" ]]; then
strip src/milvus_server
fi
if [[ ${BUILD_COVERAGE} = "ON" ]]; then
bash coverage.sh
if [[ ${BUILD_COVERAGE} == "ON" ]]; then
cd -
bash `pwd`/coverage.sh
cd -
fi
make install

0
cpp/coverage.sh Normal file → Executable file
View File