Commit b48dfe0bbe73c1b17ff645fdbe3dcd321b2b5a7b

Arthur Schreiber 2015-06-27T14:54:19

Always install valgrind via the apt addon.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/.travis.yml b/.travis.yml
index c81fe9f..9022fde 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,6 +27,7 @@ addons:
     - libssh2-1-dev
     - openssh-client
     - openssh-server
+    - valgrind
 
 sudo: false
 
@@ -62,7 +63,6 @@ script:
 
 # Run Tests
 after_success:
- - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then sudo apt-get -qq install valgrind; fi
  - 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
 
 # Only watch the development and master branches