summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-22 04:31:06 +0200
committerPablo Barciela <[email protected]>2019-08-22 04:31:06 +0200
commit564e83336de68810e28d76d5badade632c246e27 (patch)
treef6860df8cd5c79e3876c785986ba086a3170505f
parent94e6ce34975ede62fe31d9112ef450255ad94f15 (diff)
downloadmarco-564e83336de68810e28d76d5badade632c246e27.tar.bz2
marco-564e83336de68810e28d76d5badade632c246e27.tar.xz
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.
-rw-r--r--.travis.yml4
1 files 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