summaryrefslogtreecommitdiff
path: root/tools/travis-ci/run.sh
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-09-14 20:09:50 +0200
committermayeut <mayeut@users.noreply.github.com>2015-09-14 20:09:50 +0200
commit3ea4486bedf15be988736e6f9cb5db088ea9017c (patch)
tree7de31ec5446b460af445df0f28fd97d9697cc580 /tools/travis-ci/run.sh
parent6e11b55441401620bcea9265d797c8c2bdba3cc2 (diff)
Travis-ci update
Correct case in config Check DynamicAnalysis result
Diffstat (limited to 'tools/travis-ci/run.sh')
-rwxr-xr-xtools/travis-ci/run.sh22
1 files changed, 14 insertions, 8 deletions
diff --git a/tools/travis-ci/run.sh b/tools/travis-ci/run.sh
index c7387ab2..bec41d6d 100755
--- a/tools/travis-ci/run.sh
+++ b/tools/travis-ci/run.sh
@@ -189,20 +189,26 @@ if [ "${OPJ_CI_SKIP_TESTS:-}" != "1" ]; then
done < failures.txt
fi
fi
-
- # 4th memcheck step
- OPJ_MEMCHECK_XML=$(find build -path 'build/Testing/*' -name 'DynamicAnalysis.xml')
- if [ -f "${OPJ_MEMCHECK_XML}" ]; then
- echo "TODO parse DynamicAnalysis.xml"
- fi
-
+
if [ ${OPJ_CI_RESULT} -eq 0 ]; then
- echo "No new/unknown test failure found"
+ echo "No new/unknown test failure found
+ "
else
echo "
New/unknown test failure found!!!
"
fi
+
+ # 4th memcheck step
+ OPJ_MEMCHECK_XML=$(find build -path 'build/Testing/*' -name 'DynamicAnalysis.xml')
+ if [ -f "${OPJ_MEMCHECK_XML}" ]; then
+ if grep '<Defect Type' ${OPJ_MEMCHECK_XML} 2> /dev/null; then
+ echo "Errors were found in dynamic analysis log"
+ OPJ_CI_RESULT=1
+ fi
+ fi
+
+
fi
exit ${OPJ_CI_RESULT}