From: Ivan Maidanski Date: Thu, 8 Nov 2018 09:22:04 +0000 (+0300) Subject: Travis CI: Execute cppcheck without sudo and -U long X-Git-Tag: v8.0.2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7204852d357943d3c32b2d274b96462e4ddd0e4;p=gc Travis CI: Execute cppcheck without sudo and -U long --- diff --git a/.travis.yml b/.travis.yml index 695a5a35..348d47eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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;