From 1a1bb1051184857add8f6bd7fa2bb3040a46cecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 11 May 2018 23:22:16 +0200 Subject: [PATCH] travis: add misra tests to ci --- .travis.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e44d13b11..06fed913c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -80,7 +80,7 @@ script: - cd ./gui # clean rebuild - git clean -dfx . -# can't set this as env flags, so try again with HAVE_RULES=yes +# can't set this as env flags, so try again with HAVE_RULES=yes - qmake HAVE_RULES=yes - echo $CXXFLAGS - make -s -j4 @@ -118,8 +118,19 @@ script: - ./cppcheck test/testpreprocessor.cpp --dump - xmllint --noout test/testpreprocessor.cpp.dump # check addons/misra.py -# - ./cppcheck --dump addons/misra-test.c -# - python addons/misra.py -verify addons/misra-test.c.dump + - cd addons/test + - ../../cppcheck --dump misc-test.cpp + - python3 ../misc.py -verify misc-test.cpp.dump + - ../../cppcheck --dump cert-test.c + - python3 ../cert.py -verify cert-test.c.dump +# these are broken right now. +# uncomment as soon as it gets fixed +# - ../../cppcheck --dump misra-test.c +# - python3 ../misra.py -verify misra-test.c.dump + - ../../cppcheck --dump misra-test.cpp + - python3 ../misra.py -verify misra-test.cpp.dump + - cd ../../ + notifications: irc: