travis: split valgrind check in its own script

This commit is contained in:
Etienne Samson
2018-04-20 23:11:16 +02:00
parent 2f4e7cb0e8
commit 74b0a43207
2 changed files with 14 additions and 4 deletions

13
script/cileaks.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -x
# If this platform doesn't support test execution, bail out now
if [ -n "$SKIP_TESTS" ];
then
exit $?;
fi
if [ -n "$VALGRIND" -a -e "$(which valgrind)" ]; then
valgrind --leak-check=full --show-reachable=yes --error-exitcode=125 --suppressions=./libgit2_clar.supp _build/libgit2_clar $@ -ionline
fi