summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-22 12:45:25 +0200
committerPablo Barciela <[email protected]>2019-08-22 17:03:43 +0200
commit1dbf02c894cd442c1376d2c00e4daa8d8aba2ab7 (patch)
treeb6d1e21a6f167841808074e103dccaf6a5d786ab
parentad3589ae7b6958b472eefaf059683b1c9bafcc17 (diff)
downloadmate-menus-1dbf02c894cd442c1376d2c00e4daa8d8aba2ab7.tar.bz2
mate-menus-1dbf02c894cd442c1376d2c00e4daa8d8aba2ab7.tar.xz
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.
-rw-r--r--.travis.yml4
1 files 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