From: Ivan Maidanski Date: Mon, 27 Mar 2017 07:44:03 +0000 (+0300) Subject: Travis CI: Use CSA v4.0 (clang-4.0) X-Git-Tag: v8.0.0~811 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e72a7bc9a2b568e643fb30204b51d91cfbdd7576;p=platform%2Fupstream%2Flibgc.git Travis CI: Use CSA v4.0 (clang-4.0) --- diff --git a/.travis.yml b/.travis.yml index 556951e..a04273a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -155,9 +155,25 @@ matrix: - CFLAGS_EXTRA="-O3 -march=native" - CONF_CPP=--enable-cplusplus - os: linux - addons: { apt: { packages: [ gcc-multilib ] } } + addons: + apt: + sources: + - llvm-toolchain-trusty-4.0 + packages: + - clang-4.0 + - gcc-multilib + compiler: clang-4.0 + dist: trusty env: [ CSA_CHECK=true, CFLAGS_EXTRA="-m32" ] - os: linux + addons: + apt: + sources: + - llvm-toolchain-trusty-4.0 + packages: + - clang-4.0 + compiler: clang-4.0 + dist: trusty 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" @@ -222,7 +238,7 @@ script: fi - if [ -f gctest.log ]; then cat gctest.log; fi - if [[ "$CSA_CHECK" == true ]]; then - clang --analyze -Xanalyzer -analyzer-output=text + ${CC} --analyze -Xanalyzer -analyzer-output=text -Werror -I include -I libatomic_ops/src $CFLAGS_EXTRA *.c *.cc cord/*.c cord/tests/cordtest.c cord/tests/de.c extra/gc.c extra/msvc_dbg.c tests/*.c tests/*.cc tools/*.c;