diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-16 17:38:03 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-16 17:38:03 +0200 |
commit | 570452e31a58ad58716887cea479b7c00fc4f02f (patch) | |
tree | ca9f132b165cf554c54efcb38ff94efe1f34ea66 /.travis.yml | |
parent | 73dd663876bbc070bdc0c062ba3e14448ed11c30 (diff) | |
download | libgit2-570452e31a58ad58716887cea479b7c00fc4f02f.tar.gz |
travis: run valgrind only oncecmn/valgrind-once
Instead of running valgrind on each job, half of which are in release
mode and don't have much usable information for valgrind, perform an
debug build as part of allowed_failures and run valgrind on that one,
which should speed up the feedback we get from the builds.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 362b88224..908a0f562 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,15 @@ matrix: - compiler: gcc env: COVERITY=1 os: linux + - compiler: gcc + env: + - VALGRIND=1 + OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug" + os: linux allow_failures: - - env: COVERITY=1 + - env: + - COVERITY=1 + VALGRIND=1 install: - ./script/install-deps-${TRAVIS_OS_NAME}.sh @@ -43,8 +50,8 @@ script: # Run Tests after_success: - - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install valgrind; fi - - if [ "$TRAVIS_OS_NAME" = "linux" ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi + - 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 branches: |