From 8f7e51eea121571317ff6df6f005396ff7ebf091 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 12 Mar 2018 21:26:18 +0100 Subject: Add a scripts/cppcheck.sh that check both warnings and errors, and use it in travis/linux_gcc --- travis/linux_gcc/before_install.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'travis') diff --git a/travis/linux_gcc/before_install.sh b/travis/linux_gcc/before_install.sh index 87877629..c1d119d8 100755 --- a/travis/linux_gcc/before_install.sh +++ b/travis/linux_gcc/before_install.sh @@ -4,16 +4,10 @@ sudo apt-get install -y cppcheck -cppcheck --inline-suppr --template='{file}:{line},{severity},{id},{message}' --enable=all --inconclusive --std=posix src/*.c 2>/tmp/cppcheck.txt - -grep "error," /tmp/cppcheck.txt -if [[ $? -eq 0 ]] ; then - echo "cppcheck failed" - exit 1 -fi - set -e +scripts/cppcheck.sh + pip install --user cpp-coveralls ./travis/docker.sh -- cgit v1.2.3