From 44f5cceb2604854724b0eb241aaaa394ea6ccb95 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 28 Feb 2017 00:32:50 +0300 Subject: [PATCH] Travis CI: Move cppcheck to parent (home) folder (fix commit b89b137e) --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f173ce4..9538fde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,8 +58,9 @@ before_install: CONF_SINGLE_OBJ=--enable-single-obj-compilation; fi - if [[ "$CPPCHECK" != "" ]]; then - git clone --depth=3 https://github.com/danmar/cppcheck.git -b master; - make --directory cppcheck -j CXXFLAGS="-O3 -march=native -DNDEBUG"; + git clone --depth=3 https://github.com/danmar/cppcheck.git + ~/cppcheck -b master; + make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -DNDEBUG"; if [[ "$CPPCHECK" == "ALL_EXCEPT_UNUSED" ]]; then CPPCHECK_ENABLE="-j16 --enable=information,performance,portability,style,warning"; else @@ -99,7 +100,7 @@ script: extra/msvc_dbg.c tests/*.c tests/*.cc tools/*.c; fi - if [[ "$CPPCHECK" != "" ]]; then - cppcheck/cppcheck -f --error-exitcode=2 -Ulong -DCPPCHECK + ~/cppcheck/cppcheck -f --error-exitcode=2 -Ulong -DCPPCHECK -I include -I libatomic_ops/src $CPPCHECK_ENABLE *.cc cord/*.c cord/tests/*.c extra/*.c extra/*.cpp tests/*.c tests/*.cc tools/*.c; -- 2.7.4