Use cppcheck-lib.cfg in travis and during release
This commit is contained in:
parent
917317ad3d
commit
d22614bdaa
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue