From 2f9802b24be0aef3689a1cd06fd166383a936118 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Fri, 3 Apr 2020 00:07:17 +0500 Subject: [PATCH] CI: travis-ci: enable DEBUG_STRICT=1 for CI builds DEBUG_STRICT enables the BUG_ON() macro which validates some developers' assertions in the code that are not enabled for production build but may sometimes help catch certain rare bugs. DEBUG_STRICT is set to all builds except one --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 525021cfb..e64bc86f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ env: - SSL_INC=${HOME}/opt/include - TMPDIR=/tmp - FIFTYONEDEGREES_SRC="contrib/51d/src/pattern" + - DEBUG_OPTIONS="DEBUG_STRICT=1" addons: apt: @@ -73,6 +74,7 @@ matrix: compiler: clang env: TARGET=linux-glibc LIBRESSL_VERSION=3.0.2 CC=clang-9 - os: linux + env: DEBUG_OPTIONS="" if: type == cron compiler: clang env: TARGET=linux-glibc LIBRESSL_VERSION=2.9.2 CC=clang-9 @@ -109,7 +111,7 @@ install: script: - if [ "${CC%-*}" = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"; fi - make -C contrib/wurfl - - make -j3 CC=$CC V=1 ERR=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" ADDLIB="-Wl,-rpath,$SSL_LIB" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS" + - make -j3 CC=$CC V=1 ERR=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" ADDLIB="-Wl,-rpath,$SSL_LIB" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS" $DEBUG_OPTIONS - ./haproxy -vv - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi