travis: Only run Valgrind when all tests pass

This commit is contained in:
nulltoken 2013-01-06 17:21:37 +01:00
parent 5df7ad3ece
commit ced8eff1e5

View File

@ -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: