2019-10-17 06:53:55 +02:00
# build status appears on https://travis-ci.com/haproxy/haproxy
2020-10-21 15:12:29 +05:00
dist : focal
2019-04-17 12:41:13 +05:00
language : c
2019-10-17 06:53:55 +02:00
branches :
only :
- master
- next
2019-05-03 14:31:20 +05:00
env :
global :
2019-06-16 01:19:27 +05:00
- FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=contrib/wurfl WURFL_LIB=contrib/wurfl USE_DEVICEATLAS=1 DEVICEATLAS_SRC=contrib/deviceatlas USE_51DEGREES=1"
2019-05-10 15:38:52 +05:00
- TMPDIR=/tmp
2021-04-02 16:12:32 +02:00
- FIFTYONEDEGREES_SRC="addons/51degrees/dummy/pattern"
2020-04-03 00:07:17 +05:00
- DEBUG_OPTIONS="DEBUG_STRICT=1"
2019-05-03 14:31:20 +05:00
2019-04-24 19:11:09 +05:00
addons :
apt :
2020-01-19 12:14:02 +05:00
update : true
2020-10-21 15:12:29 +05:00
packages : [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, clang-9, socat, ninja-build, libpcre3-dev ]
2019-04-24 19:11:09 +05:00
2019-05-07 01:42:43 +05:00
cache :
directories :
- download-cache
- ${HOME}/opt
2019-04-17 12:41:13 +05:00
matrix :
include :
2020-01-19 12:14:02 +05:00
- os : linux
arch : ppc64le
2019-08-19 21:32:53 +05:00
if : type == cron
2019-05-03 14:31:20 +05:00
compiler : gcc
2020-01-19 12:14:02 +05:00
env : TARGET=linux-glibc OPENSSL_VERSION=1.0.2u
2020-07-30 01:47:55 +05:00
name : openssl-1.0.2
2020-05-07 20:57:26 +05:00
- os : linux
arch : arm64
if : type == push
compiler : clang
2020-07-30 01:39:24 +05:00
env : TARGET=linux-glibc CC=clang-9
2020-07-30 01:47:55 +05:00
name : openssl-1.1.1
2020-03-13 04:10:31 +01:00
- os : linux
arch : s390x
2020-03-18 21:27:39 +05:00
if : type == push
2020-03-13 04:10:31 +01:00
compiler : gcc
2020-07-30 01:47:55 +05:00
env : TARGET=linux-glibc
name : openssl-1.1.1
2019-08-02 22:59:03 +05:00
- os : linux
2019-08-19 21:32:53 +05:00
if : type == cron
2019-05-22 20:12:15 +05:00
compiler : clang
2021-04-02 16:12:32 +02:00
env : TARGET=linux-glibc OPENSSL_VERSION=1.1.0l FIFTYONEDEGREES_SRC="addons/51degrees/dummy/trie" CC=clang-9
2020-07-30 01:47:55 +05:00
name : openssl-1.1.1 | 51d trie
2019-05-03 14:31:20 +05:00
- os : linux
2020-04-03 00:07:17 +05:00
env : DEBUG_OPTIONS=""
2019-08-19 21:32:53 +05:00
if : type == cron
2019-05-22 20:12:15 +05:00
compiler : clang
2020-05-09 21:36:04 +05:00
env : TARGET=linux-glibc LIBRESSL_VERSION=3.0.2 CC=clang-9
2020-07-30 01:47:55 +05:00
name : libressl-3.0.2 | ERR=
2019-09-19 23:32:30 +05:00
- os : linux
if : type == cron
compiler : clang
2020-01-24 11:36:41 +05:00
env : TARGET=linux-glibc FLAGS="USE_SLZ=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=contrib/wurfl WURFL_LIB=contrib/wurfl USE_51DEGREES=1" CC=clang-9
2019-09-19 23:32:30 +05:00
before_script :
2020-05-19 01:47:07 +05:00
- git clone https://github.com/wtarreau/libslz
2019-09-19 23:32:30 +05:00
- cd libslz && make && make PREFIX=${HOME}/opt install && cd ..
2020-07-31 02:08:13 +05:00
- export SLZ_INC=${HOME}/opt/include SLZ_LIB=${HOME}/opt/lib
- export ADDLIB="-Wl,-rpath,$SLZ_LIB"
2020-07-30 01:47:55 +05:00
name : openssl-1.1.1 | slz | pcre2
2019-04-17 12:41:13 +05:00
install :
- git clone https://github.com/VTest/VTest.git ../vtest
2019-04-24 19:11:09 +05:00
# Special flags due to: https://github.com/vtest/VTest/issues/12
- make -C ../vtest FLAGS="-O2 -s -Wall"
2020-07-30 01:39:24 +05:00
- |
if [ ! -z ${OPENSSL_VERSION+x} ] || [ ! -z ${LIBRESSL_VERSION+x} ] || [ ! -z ${BORINGSSL+x} ]; then
travis_wait bash -c 'scripts/build-ssl.sh >build-ssl.log 2>&1' || (cat build-ssl.log && exit 1)
export SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include
2020-07-31 02:08:13 +05:00
export ADDLIB="-Wl,-rpath,$SSL_LIB"
2020-07-30 01:39:24 +05:00
fi
2019-04-24 19:11:09 +05:00
2019-04-17 12:41:13 +05:00
script :
2020-08-27 21:00:09 +05:00
- if [ "${CC%-*}" = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address" ASAN_OPTIONS="log_path=asan.log"; fi
2019-05-22 20:12:15 +05:00
- make -C contrib/wurfl
2020-08-04 15:39:41 +05:00
- make -j3 CC=$CC CPU_CFLAGS.generic="-O1" V=1 ERR=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" ADDLIB="$ADDLIB" SSL_LIB="$SSL_LIB" SSL_INC="$SSL_INC" SLZ_LIB="$SLZ_LIB" SLZ_INC="$SLZ_INC" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS" $DEBUG_OPTIONS
2019-04-24 19:11:09 +05:00
- ./haproxy -vv
2019-05-03 14:31:20 +05:00
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi
2020-01-24 17:37:35 +01:00
- make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
2020-08-27 21:00:09 +05:00
- |
if ls asan.log* 1>/dev/null 2>&1; then
cat asan.log*
exit 1
fi
2019-04-24 19:11:09 +05:00
after_failure :
- |
2019-05-10 15:38:52 +05:00
for folder in ${TMPDIR}/*regtest*/vtc.*; do
2019-04-24 19:11:09 +05:00
cat $folder/INFO
cat $folder/LOG
done