From 981147b227e73f5a236c883c3c961b6e71961073 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 22 Nov 2018 16:39:52 +0300 Subject: [PATCH] Travis CI: Pass -D GC_BUILTIN_ATOMIC to cppcheck, remove --quiet flag (back-port of commit 1d7cf245b from 'master') --- .travis.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 348d47eb..e8fdf458 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,13 @@ matrix: - os: linux env: - MAKEFILE_TARGETS="dist" + - os: linux + env: + - CPPCHECK_ENABLE="--enable=unusedFunction -D GC_BUILTIN_ATOMIC" + - NO_CLONE_LIBATOMIC_OPS=true + - os: linux + env: + - CPPCHECK_ENABLE="-j4 --enable=information,performance,portability,style,warning extra/AmigaOS.c extra/MacOS.c extra/msvc_dbg.c extra/real_malloc.c extra/symbian.cpp" - os: linux compiler: gcc env: @@ -270,12 +277,6 @@ matrix: env: - CSA_CHECK=true - CFLAGS_EXTRA="-D ALL_INTERIOR_POINTERS -D CHECKSUMS -D DBG_HDRS_ALL -D DEBUG_THREADS -D ENABLE_TRACE -D GC_ALWAYS_MULTITHREADED -D GC_ASSERTIONS -D GC_ATOMIC_UNCOLLECTABLE -D GC_ENABLE_SUSPEND_THREAD -D GC_GCJ_SUPPORT -D GC_PRINT_BACK_HEIGHT -D GC_THREADS -D HANDLE_FORK -D JAVA_FINALIZATION -D KEEP_BACK_PTRS -D MAKE_BACK_GRAPH -D PARALLEL_MARK -D PRINT_BLACK_LIST -D THREAD_LOCAL_ALLOC -D USE_MMAP -D USE_MUNMAP" - - 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" - - os: linux - env: - - CPPCHECK_ENABLE="--enable=unusedFunction" - os: linux compiler: clang env: @@ -604,10 +605,10 @@ script: tests/*.c tests/*.cc tools/*.c; fi - if [[ "$CPPCHECK_ENABLE" != "" ]]; then - ~/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; + set -o pipefail; ~/cppcheck/cppcheck --force --error-exitcode=2 + -U GC_API -D CPPCHECK -I include -I libatomic_ops/src + $CPPCHECK_ENABLE *.c *.cc cord/*.c cord/tests/*.c tests/*.c tests/*.cc + tools/*.c | grep --line-buffered "c "; fi - if [[ "$TESTS_CUSTOM_RUN" == true ]]; then ASAN_OPTIONS="detect_leaks=1" UBSAN_OPTIONS="halt_on_error=1" -- 2.40.0