From 1dbf02c894cd442c1376d2c00e4daa8d8aba2ab7 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 22 Aug 2019 12:45:25 +0200 Subject: Travis CI: cppcheck with -D arguments cppcheck with -D'MATEMENU_I_KNOW_THIS_IS_UNSTABLE' and -D'G_ENABLE_DEBUG' To force the analyse of all the files Fixes the warning: [libmenu/matemenu-tree.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 2899ca9..c87ec06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -147,12 +147,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 . + - cppcheck --enable=warning,style,performance,portability,information,missingInclude -D'MATEMENU_I_KNOW_THIS_IS_UNSTABLE' -D'G_ENABLE_DEBUG' . - fi after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then - - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude . + - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude -D'MATEMENU_I_KNOW_THIS_IS_UNSTABLE' -D'G_ENABLE_DEBUG' . - cppcheck-htmlreport --title=${REPO_NAME} --file=cppcheck.xml --report-dir=cppcheck-htmlreport - ./gen-index -l 20 - fi -- cgit v1.2.1