]> git.proxmox.com Git - libgit2.git/commitdiff
travis: make it run the tests under valgrind
authorCarlos Martín Nieto <carlos@cmartin.tk>
Thu, 12 Jul 2012 19:04:09 +0000 (21:04 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Thu, 12 Jul 2012 19:26:21 +0000 (21:26 +0200)
.travis.yml

index 2713651a8e7c0a94cd64b6e9b8d56cc8de0cca1b..c9d99d6f73d4382d77342490a3cd8bee623d88a1 100644 (file)
@@ -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: