提交 07cc917c 编写于 作者: Z zhenwu

update coverage timeout && add coverage exit code


Former-commit-id: 0c623d2348e73dc0c1df24f96098c4c5568e73ba
上级 dead8ee6
timeout(time: 60, unit: 'MINUTES') { timeout(time: 30, unit: 'MINUTES') {
dir ("ci/jenkins/scripts") { dir ("ci/jenkins/scripts") {
sh "./coverage.sh -o /opt/milvus -u root -p 123456 -t \$POD_IP" sh "./coverage.sh -o /opt/milvus -u root -p 123456 -t \$POD_IP"
// Set some env variables so codecov detection script works correctly // Set some env variables so codecov detection script works correctly
......
...@@ -109,6 +109,7 @@ for test in `ls ${DIR_UNITTEST}`; do ...@@ -109,6 +109,7 @@ for test in `ls ${DIR_UNITTEST}`; do
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo ${args} echo ${args}
echo ${DIR_UNITTEST}/${test} "run failed" echo ${DIR_UNITTEST}/${test} "run failed"
exit -1
fi fi
done done
...@@ -134,5 +135,10 @@ ${LCOV_CMD} -r "${FILE_INFO_OUTPUT}" -o "${FILE_INFO_OUTPUT_NEW}" \ ...@@ -134,5 +135,10 @@ ${LCOV_CMD} -r "${FILE_INFO_OUTPUT}" -o "${FILE_INFO_OUTPUT_NEW}" \
"*/src/utils/easylogging++.h" \ "*/src/utils/easylogging++.h" \
"*/src/utils/easylogging++.cc" "*/src/utils/easylogging++.cc"
if [ $? -ne 0 ]; then
echo "gen ${FILE_INFO_OUTPUT_NEW} failed"
exit -2
fi
# gen html report # gen html report
# ${LCOV_GEN_CMD} "${FILE_INFO_OUTPUT_NEW}" --output-directory ${DIR_LCOV_OUTPUT}/ # ${LCOV_GEN_CMD} "${FILE_INFO_OUTPUT_NEW}" --output-directory ${DIR_LCOV_OUTPUT}/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册