Commit 8b107c6770516db9527f565af0298b9c1f738e58

Vicent Martí 2013-01-06T09:12:02

Merge pull request #1198 from nulltoken/travis/run-valgrind-on-success 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: