From 9d6abdff7d6e0b72b72c6ef99e74e43bfea2280d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 24 Mar 2017 19:02:18 +0300 Subject: [PATCH] Travis CI: Move optional -D arguments of CSA to CFLAGS_EXTRA (refactoring of commit 4393a96) --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 23ad032..00e5793 100644 --- a/.travis.yml +++ b/.travis.yml @@ -129,7 +129,7 @@ matrix: sources: [ llvm-toolchain-trusty-4.0 ] compiler: clang-4.0 dist: trusty - env: [ CSA_CHECK=true ] + env: [ CSA_CHECK=true, CFLAGS_EXTRA="-D AO_TRACE_MALLOC -D VERBOSE" ] - os: linux addons: { apt: { packages: [ musl-tools ] } } compiler: musl-gcc @@ -233,7 +233,7 @@ script: - if [ -f tests/test_atomic.log ]; then cat tests/test_atomic*.log; fi - if [[ "$CSA_CHECK" == true ]]; then ${CC} --analyze -Xanalyzer -analyzer-output=text -Werror -I src - -D AO_TRACE_MALLOC -D VERBOSE tests/*.c src/*.c; + $CFLAGS_EXTRA tests/*.c src/*.c; fi - if [[ "$CPPCHECK" == true ]]; then ~/cppcheck/cppcheck -f -q --error-exitcode=2 -j16 -U long -D CPPCHECK -- 2.50.1