diff options
| author | Etienne Samson <samson.etienne@gmail.com> | 2018-04-20 23:11:16 +0200 |
|---|---|---|
| committer | Etienne Samson <samson.etienne@gmail.com> | 2018-06-06 13:15:50 +0200 |
| commit | 74b0a4320726cb557bcf73f47ba25ee10c430066 (patch) | |
| tree | d946a0bd40fadd0e57434da8ac190fceaad07214 | |
| parent | 2f4e7cb0e8c21cc2d673946eddf9278c2863427b (diff) | |
| download | libgit2-74b0a4320726cb557bcf73f47ba25ee10c430066.tar.gz | |
travis: split valgrind check in its own script
| -rw-r--r-- | .travis.yml | 5 | ||||
| -rwxr-xr-x | script/cileaks.sh | 13 |
2 files changed, 14 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 8c12edafd..eed5af677 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/script/cileaks.sh b/script/cileaks.sh new file mode 100755 index 000000000..1946e8cb0 --- /dev/null +++ b/script/cileaks.sh @@ -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 |
