mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
travis: split valgrind check in its own script
This commit is contained in:
@@ -75,10 +75,7 @@ install:
|
||||
script:
|
||||
- script/cibuild.sh
|
||||
- script/citest.sh
|
||||
|
||||
# Run Tests
|
||||
after_success:
|
||||
- if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi
|
||||
- script/cileaks.sh
|
||||
|
||||
# Only watch the development and master branches
|
||||
branches:
|
||||
|
||||
13
script/cileaks.sh
Executable file
13
script/cileaks.sh
Executable 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
|
||||
Reference in New Issue
Block a user