From d22614bdaa731c3c05aa0ffcc8f50984305abe9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 10 Oct 2017 12:29:22 +0200 Subject: [PATCH] Use cppcheck-lib.cfg in travis and during release --- .travis.yml | 2 +- createrelease | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index eb9f0100a..ed8711565 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,7 +56,7 @@ script: - cd ../ # use same hack as for clang to work around cppchecks broken exit status with -j 2 ; create file, tee everything to the file and stdout, grep for errors in the file - touch /tmp/cppcheck.cppcheck - - ./cppcheck --error-exitcode=1 -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling --suppressions-list=.travis_suppressions -itest/synthetic -iaddons -igui . -j 2 |& tee /tmp/cppcheck.cppcheck + - ./cppcheck --error-exitcode=1 --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling --suppressions-list=.travis_suppressions -itest/synthetic -iaddons -igui . -j 2 |& tee /tmp/cppcheck.cppcheck # check gui with qt settings - ./cppcheck --library=qt --error-exitcode=1 -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml/ -Icli --enable=style,performance,portability,warning,internal --exception-handling -j 2 gui -igui/test |& tee --append /tmp/cppcheck.cppcheck - sh -c "! grep '^\[' /tmp/cppcheck.cppcheck" diff --git a/createrelease b/createrelease index 65d4e497d..4d0bcd3a8 100755 --- a/createrelease +++ b/createrelease @@ -3,7 +3,7 @@ # A script for creating release packages. The release packages are create in the home directory. # # self check: -# ./cppcheck --enable=style --inconclusive --suppress=bitwiseOnBoolean cli gui/*.cpp lib +# ./cppcheck --library=cppcheck-lib --enable=style --inconclusive --suppress=bitwiseOnBoolean cli gui/*.cpp lib # # Update translations # lupdate gui.pro