Commit cedc15af9959e4931ef39e24a6ca5e17b2688ee2

Sascha Cunz 2012-12-20T03:51:06

Mark travis build as failed if any test fails

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/.travis.yml b/.travis.yml
index 4b37998..8ce4903 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,10 +29,10 @@ script:
  - cd _build
  - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
  - cmake --build . --target install
+ - ctest -V .
 
 # Run Tests
 after_script:
- - ctest -V .
  - if [ -f ./libgit2_clar ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=../libgit2_clar.supp ./libgit2_clar -iall; else echo "Skipping valgrind"; fi
 
 # Only watch the development branch