Travis CI: Move cppcheck to parent (home) folder
authorIvan Maidanski <ivmai@mail.ru>
Mon, 27 Feb 2017 21:32:50 +0000 (00:32 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 27 Feb 2017 21:32:50 +0000 (00:32 +0300)
(fix commit b89b137e)

.travis.yml

index f173ce4..9538fde 100644 (file)
@@ -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;