Commit ced8eff1e5d9e55b4fe3f903595d4edbfb0f3432

nulltoken 2013-01-06T17:21:37

travis: Only run Valgrind when all tests pass

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: