mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 16:33:43 +00:00
Merge pull request #2569 from libgit2/cmn/valgrind-once
travis: run valgrind only once
This commit is contained in:
commit
ecef28d55c
13
.travis.yml
13
.travis.yml
@ -31,8 +31,15 @@ matrix:
|
|||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
env: COVERITY=1
|
env: COVERITY=1
|
||||||
os: linux
|
os: linux
|
||||||
|
- compiler: gcc
|
||||||
|
env:
|
||||||
|
- VALGRIND=1
|
||||||
|
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug"
|
||||||
|
os: linux
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: COVERITY=1
|
- env:
|
||||||
|
- COVERITY=1
|
||||||
|
VALGRIND=1
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ./script/install-deps-${TRAVIS_OS_NAME}.sh
|
- ./script/install-deps-${TRAVIS_OS_NAME}.sh
|
||||||
@ -43,8 +50,8 @@ script:
|
|||||||
|
|
||||||
# Run Tests
|
# Run Tests
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq install valgrind; fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; 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 valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi
|
||||||
|
|
||||||
# Only watch the development and master branches
|
# Only watch the development and master branches
|
||||||
branches:
|
branches:
|
||||||
|
Loading…
Reference in New Issue
Block a user