aboutsummaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-03-12 21:26:18 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-03-14 18:51:50 +0100
commit8f7e51eea121571317ff6df6f005396ff7ebf091 (patch)
tree2930ee0aadf19c5e5860d8da5fa3c840c35e0fde /travis
parent3ae126e05c9794a2883ee1613c215652f949a3f4 (diff)
downloadPROJ-8f7e51eea121571317ff6df6f005396ff7ebf091.tar.gz
PROJ-8f7e51eea121571317ff6df6f005396ff7ebf091.zip
Add a scripts/cppcheck.sh that check both warnings and errors, and use it in travis/linux_gcc
Diffstat (limited to 'travis')
-rwxr-xr-xtravis/linux_gcc/before_install.sh10
1 files changed, 2 insertions, 8 deletions
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