Commit 9f99c5de2e297a9aabc64b028069a4ca870db9d2

Carlos Martín Nieto 2012-07-12T21:04:09

travis: make it run the tests under valgrind

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/.travis.yml b/.travis.yml
index 2713651..c9d99d6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,7 @@ env:
       
 # Make sure CMake is installed
 install:
- - sudo apt-get install cmake
+ - sudo apt-get install cmake valgrind
 
 # Run the Build script
 script:
@@ -24,6 +24,7 @@ script:
 # Run Tests
 after_script:
  - ctest -V .
+ - if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes ./libgit2_clar; else echo "Skipping valgrind"; fi
 
 # Only watch the development branch
 branches: