From 88d542ad15149f8afe02ca7a3d410aa24e11339e Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Thu, 16 Nov 2017 23:42:12 +0000 Subject: travis: fail on memory leaks Pass `--error-exitcode=125` to valgrind so that it will exit with a non-zero exit code when it detects a memory leak. Use an exit code of `125` to stay safely above any clar errors and safely below any shell errors. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 569a6a7d4..64ecfdd62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -67,7 +67,7 @@ script: # 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 + - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then valgrind --leak-check=full --show-reachable=yes --error-exitcode=125 --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi # Only watch the development and master branches branches: -- cgit v1.2.1