From 564e83336de68810e28d76d5badade632c246e27 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 22 Aug 2019 04:31:06 +0200 Subject: Travis CI: cppcheck with -D'PACKAGE' and -D'WITH_VERBOSE_MODE' To force the analyse of all the files Fixes the warning: [src/core/keybindings.c:0]: (information) This file is not analyzed. Cppcheck failed to extract a valid configuration. Use -v for more details. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e2ed903..be3bcfde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -196,12 +196,12 @@ build_scripts: - scan-build $CHECKERS --keep-cc -o html-report make - fi - if [ ${DISTRO_NAME} == "debian" ];then - - cppcheck --enable=warning,style,performance,portability,information,missingInclude --force . + - cppcheck --enable=warning,style,performance,portability,information,missingInclude --force -D'PACKAGE' -D'WITH_VERBOSE_MODE' . - fi after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then - - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude --force . + - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude --force -D'PACKAGE' -D'WITH_VERBOSE_MODE' . - cppcheck-htmlreport --title=${REPO_NAME} --file=cppcheck.xml --report-dir=cppcheck-htmlreport - ./gen-index -l 20 -i https://github.com/${OWNER_NAME}/mate-icon-theme/raw/master/mate/16x16/apps/preferences-system-windows.png - fi -- cgit v1.2.1