Merge pull request #1198 from nulltoken/travis/run-valgrind-on-success travis: Only run Valgrind when all tests pass
diff --git a/.travis.yml b/.travis.yml
index c1e3490..32b1446 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,8 +32,8 @@ script:
- ctest -V .
# Run Tests
-after_script:
- - if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar -ionline; else echo "Skipping valgrind"; fi
+after_success:
+ - valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar -ionline
# Only watch the development branch
branches: