From edf44d2509727f3605d1df364d5e7a84cd51e69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 12 Jan 2014 16:30:14 +0100 Subject: [PATCH] travis: check the repo with cppcheck after building gui. --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bdb77e223..7145b048e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,15 @@ script: # compile cppcheck, default build - make -j4 - make test -j4 - - ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppressions-list=.travis_suppressions . # compile gui - cd gui - qmake - make -j4 +# building gui generates some more files that cppcheck can check, so check the repo *after* building gui + - cd ../ + - ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppressions-list=.travis_suppressions . + - cd ./gui +# clean rebuild - git clean -dfx . # can't set this as env flags, so try again with HAVE_RULES=yes - qmake HAVE_RULES=yes