From 811f07ab89385d430a6f8d83e865cb3ad60b6bd8 Mon Sep 17 00:00:00 2001
From: Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
Date: Wed, 16 Jul 2014 13:51:13 +0200
Subject: [PATCH] tests: run cppcheck for PR in Travis

Failures are ignored for now.
---
 .travis.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index f4ef548a42..b24d49d625 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,6 +24,7 @@ install:
     - sudo apt-get install qemu-system-x86 python3
     - sudo apt-get install g++-multilib
     - sudo apt-get install gcc-avr binutils-avr avr-libc
+    - sudo apt-get install cppcheck
     - git config --global user.email "travis@example.com"
     - git config --global user.name "Travis CI"
 
@@ -39,6 +40,10 @@ script:
     - make -C ./tests/unittests test BOARD=native
     - 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
 
 notifications:
     email: false
-- 
GitLab