]> granicus.if.org Git - gc/commitdiff
Travis CI: Execute cppcheck without sudo and -U long
authorIvan Maidanski <ivmai@mail.ru>
Thu, 8 Nov 2018 09:22:04 +0000 (12:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 26 Nov 2018 20:03:09 +0000 (23:03 +0300)
.travis.yml

index 695a5a35ac95df2fae51c1c54dd49bff7209792c..348d47eb89fb99d53e9a3073834891f550a86903 100644 (file)
@@ -273,11 +273,9 @@ matrix:
   - os: linux
     env:
     - CPPCHECK_ENABLE="-j16 --enable=information,performance,portability,style,warning extra/AmigaOS.c extra/MacOS.c extra/msvc_dbg.c extra/real_malloc.c extra/symbian.cpp"
-    sudo: required
   - os: linux
     env:
     - CPPCHECK_ENABLE="--enable=unusedFunction"
-    sudo: required
   - os: linux
     compiler: clang
     env:
@@ -534,8 +532,9 @@ matrix:
 
 before_install:
 - if [[ "$CPPCHECK_ENABLE" != "" ]]; then
+    CPPCHECK_VER=master;
     git clone --depth=3 https://github.com/danmar/cppcheck.git
-            ~/cppcheck -b master;
+            ~/cppcheck -b $CPPCHECK_VER;
     make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -D NDEBUG";
   fi
 - if [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != ""
@@ -605,7 +604,7 @@ script:
         tests/*.c tests/*.cc tools/*.c;
   fi
 - if [[ "$CPPCHECK_ENABLE" != "" ]]; then
-    ~/cppcheck/cppcheck -q -f --error-exitcode=2 -U GC_API -U long -D CPPCHECK
+    ~/cppcheck/cppcheck -q -f --error-exitcode=2 -U GC_API -D CPPCHECK
         -I include -I libatomic_ops/src $CPPCHECK_ENABLE
         *.cc cord/*.c cord/tests/*.c tests/*.c tests/*.cc tools/*.c
         extra/gc.c;