diff options
Diffstat (limited to 'travis/linux_gcc')
| -rwxr-xr-x | travis/linux_gcc/before_install.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/travis/linux_gcc/before_install.sh b/travis/linux_gcc/before_install.sh index d09c6ef1..31805e80 100755 --- a/travis/linux_gcc/before_install.sh +++ b/travis/linux_gcc/before_install.sh @@ -1,5 +1,15 @@ #!/bin/bash +sudo apt-get install -y cppcheck + +cppcheck --inline-suppr --template='{file}:{line},{severity},{id},{message}' --enable=all --inconclusive --std=posix -DPJ_SELFTEST=1 src/*.c 2>/tmp/cppcheck.txt + +grep "error," /tmp/cppcheck.txt +if [[ $? -eq 0 ]] ; then + echo "cppcheck failed" + exit 1 +fi + set -e ./travis/before_install.sh |
