From 2f3f26ee105181dbc2996f5fb492cfa24468cf6c Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 17 Apr 2019 01:08:28 +0200 Subject: travis: enable cppcheck only in debian and disable it in other distros --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d5811127..24f766f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,7 +65,6 @@ requires: archlinux: # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/caja - clang - - cppcheck - gcc - git - make @@ -112,7 +111,6 @@ requires: # Useful URL: https://src.fedoraproject.org/cgit/rpms/caja.git/ - clang-analyzer - clang - - cppcheck - git - gcc - make @@ -135,7 +133,6 @@ requires: ubuntu: - clang - clang-tools - - cppcheck - git - gobject-introspection - gtk-doc-tools @@ -188,7 +185,9 @@ build_scripts: - else - scan-build $CHECKERS --keep-cc -o html-report make - fi - - cppcheck --enable=warning,style,performance,portability,information,missingInclude . + - if [ ${DISTRO_NAME} == "debian" ];then + - cppcheck --enable=warning,style,performance,portability,information,missingInclude . + - fi after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then -- cgit v1.2.1