From f8b8ef3bab86e256d7e5030a222a01f676c0065a Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann <ludwig.ortmann@fu-berlin.de> Date: Fri, 24 Oct 2014 11:41:38 +0200 Subject: [PATCH] Travis: let cppcheck fail for new files Change Travis configuration for cppcheck to fail on new files and keep on warning about existing ones. --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b7ea7a4270..224d5d13be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,9 +48,11 @@ script: - make -C ./tests/unittests test BOARD=qemu-i386 - ./dist/tools/licenses/check.sh master # TODO: -# Remove the --error-exitcode=0` when all warnings of cppcheck have been -# taken care of in master. - - ./dist/tools/cppcheck/check.sh master --error-exitcode=0 +# Remove all but `master` parameters to cppcheck (and remove second +# invocation) once all warnings of cppcheck have been taken care of +# in master. + - ./dist/tools/cppcheck/check.sh master --diff-filter=MR --error-exitcode=0 + - ./dist/tools/cppcheck/check.sh master --diff-filter=AC # TODO: # Remove the `AC` argument when all headers have been # taken care of in master. -- GitLab