2019-04-17 07:41:13 +00:00
|
|
|
sudo: required
|
|
|
|
dist: xenial
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
2019-05-03 09:31:20 +00:00
|
|
|
env:
|
|
|
|
global:
|
2019-06-15 20:19:27 +00: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-03 09:31:20 +00:00
|
|
|
- SSL_LIB=${HOME}/opt/lib
|
|
|
|
- SSL_INC=${HOME}/opt/include
|
2019-05-10 10:38:52 +00:00
|
|
|
- TMPDIR=/tmp
|
2019-06-13 15:00:05 +00:00
|
|
|
- FIFTYONEDEGREES_SRC="contrib/51d/src/pattern"
|
2019-05-03 09:31:20 +00:00
|
|
|
|
2019-04-24 14:11:09 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2019-06-04 21:16:51 +00:00
|
|
|
packages: [ liblua5.3-dev, libsystemd-dev ]
|
2019-04-24 14:11:09 +00:00
|
|
|
|
2019-05-06 20:42:43 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- download-cache
|
|
|
|
- ${HOME}/opt
|
|
|
|
|
2019-04-17 07:41:13 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-05-03 09:31:20 +00:00
|
|
|
- os: linux-ppc64le
|
2019-08-19 16:32:53 +00:00
|
|
|
if: type == cron
|
2019-05-03 09:31:20 +00:00
|
|
|
compiler: gcc
|
2019-08-19 16:32:53 +00:00
|
|
|
env: TARGET=linux-glibc OPENSSL_VERSION=1.0.2r LABEL="linux-ppc64le"
|
2019-05-03 09:31:20 +00:00
|
|
|
- os: linux
|
2019-08-02 17:59:03 +00:00
|
|
|
if: type != cron
|
2019-05-22 15:12:15 +00:00
|
|
|
compiler: clang
|
2019-06-14 16:32:34 +00:00
|
|
|
env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1c
|
2019-05-03 09:31:20 +00:00
|
|
|
- os: linux
|
2019-08-02 17:59:03 +00:00
|
|
|
if: type == cron
|
|
|
|
compiler: clang
|
|
|
|
env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1c COVERITY_SCAN_PROJECT_NAME="Haproxy" COVERITY_SCAN_BRANCH_PATTERN="*" COVERITY_SCAN_NOTIFICATION_EMAIL="chipitsine@gmail.com" COVERITY_SCAN_BUILD_COMMAND="make CC=clang TARGET=$TARGET $FLAGS 51DEGREES_SRC=$FIFTYONEDEGREES_SRC"
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
if [ ! -z ${COVERITY_SCAN_TOKEN+x} ]; then
|
|
|
|
make -C contrib/wurfl
|
|
|
|
curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true
|
|
|
|
fi
|
|
|
|
- os: linux
|
2019-08-19 16:32:53 +00:00
|
|
|
if: type == cron
|
2019-05-22 15:12:15 +00:00
|
|
|
compiler: clang
|
2019-08-19 16:32:53 +00:00
|
|
|
env: TARGET=linux-glibc OPENSSL_VERSION=1.1.0j FIFTYONEDEGREES_SRC="contrib/51d/src/trie"
|
2019-05-03 09:31:20 +00:00
|
|
|
- os: linux
|
2019-08-02 17:59:03 +00:00
|
|
|
if: type != cron
|
2019-05-22 15:12:15 +00:00
|
|
|
compiler: clang
|
2019-06-14 16:32:34 +00:00
|
|
|
env: TARGET=linux-glibc LIBRESSL_VERSION=2.9.2
|
2019-05-03 09:31:20 +00:00
|
|
|
- os: linux
|
2019-08-19 16:32:53 +00:00
|
|
|
if: type == cron
|
2019-05-22 15:12:15 +00:00
|
|
|
compiler: clang
|
2019-06-14 16:32:34 +00:00
|
|
|
env: TARGET=linux-glibc LIBRESSL_VERSION=2.8.3
|
2019-04-24 14:11:09 +00:00
|
|
|
- os: linux
|
2019-08-19 16:32:53 +00:00
|
|
|
if: type == cron
|
2019-05-22 15:12:15 +00:00
|
|
|
compiler: clang
|
2019-06-14 16:32:34 +00:00
|
|
|
env: TARGET=linux-glibc LIBRESSL_VERSION=2.7.5 EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o"
|
2019-05-08 20:15:59 +00:00
|
|
|
- os: linux
|
2019-08-19 16:32:53 +00:00
|
|
|
if: type == cron
|
2019-05-22 15:12:15 +00:00
|
|
|
compiler: clang
|
2019-06-14 16:32:34 +00:00
|
|
|
env: TARGET=linux-glibc BORINGSSL=yes
|
2019-04-17 07:41:13 +00:00
|
|
|
- os: linux
|
2019-08-02 17:59:03 +00:00
|
|
|
if: type != cron
|
2019-04-17 07:41:13 +00:00
|
|
|
compiler: clang
|
2019-06-14 16:32:34 +00:00
|
|
|
env: TARGET=linux-glibc FLAGS=
|
2019-04-24 14:11:09 +00:00
|
|
|
- os: osx
|
2019-08-02 17:59:03 +00:00
|
|
|
if: type != cron
|
2019-04-24 14:11:09 +00:00
|
|
|
compiler: clang
|
2019-06-13 15:00:05 +00:00
|
|
|
env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1c
|
2019-06-04 21:16:51 +00:00
|
|
|
- os: windows
|
2019-08-19 16:32:53 +00:00
|
|
|
if: type == cron
|
2019-06-04 21:16:51 +00:00
|
|
|
install:
|
|
|
|
- choco install bash make libssl-devel cygwin-devel gcc-core libgcc1 binutils lua-devel libpcre-devel zlib-devel --source cygwin
|
|
|
|
script:
|
|
|
|
- C:\\tools\\cygwin\\bin\\bash -lc 'cd $OLDPWD && make TARGET=cygwin USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_THREAD=1 && ./haproxy -vv'
|
2019-04-17 07:41:13 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- git clone https://github.com/VTest/VTest.git ../vtest
|
2019-04-24 14:11:09 +00:00
|
|
|
# Special flags due to: https://github.com/vtest/VTest/issues/12
|
|
|
|
- make -C ../vtest FLAGS="-O2 -s -Wall"
|
2019-05-06 20:42:43 +00:00
|
|
|
- scripts/build-ssl.sh > build-ssl.log 2>&1 || (cat build-ssl.log && exit 1)
|
2019-04-24 14:11:09 +00:00
|
|
|
|
2019-04-17 07:41:13 +00:00
|
|
|
script:
|
2019-05-22 15:12:15 +00:00
|
|
|
- if [ "${CC}" = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"; fi
|
|
|
|
- make -C contrib/wurfl
|
2019-06-13 15:00:05 +00:00
|
|
|
- make -j3 CC=$CC V=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS"
|
2019-05-03 09:31:20 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"; fi
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export DYLD_LIBRARY_PATH="${HOME}/opt/lib:${DYLD_LIBRARY_PATH:-}"; fi
|
2019-04-24 14:11:09 +00:00
|
|
|
- ./haproxy -vv
|
2019-05-03 09:31:20 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi
|
2019-05-10 10:38:52 +00:00
|
|
|
- env VTEST_PROGRAM=../vtest/vtest make reg-tests
|
2019-04-24 14:11:09 +00:00
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- |
|
2019-05-10 10:38:52 +00:00
|
|
|
for folder in ${TMPDIR}/*regtest*/vtc.*; do
|
2019-04-24 14:11:09 +00:00
|
|
|
cat $folder/INFO
|
|
|
|
cat $folder/LOG
|
|
|
|
done
|