2019-04-17 07:41:13 +00:00
|
|
|
sudo: required
|
|
|
|
dist: xenial
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
2019-05-03 09:31:20 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_LUA=1 USE_OPENSSL=1"
|
|
|
|
- SSL_LIB=${HOME}/opt/lib
|
|
|
|
- SSL_INC=${HOME}/opt/include
|
2019-05-10 10:38:52 +00:00
|
|
|
- TMPDIR=/tmp
|
2019-05-03 09:31:20 +00:00
|
|
|
|
2019-04-24 14:11:09 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: [ liblua5.3-dev ]
|
|
|
|
|
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-04-24 14:11:09 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 FLAGS=
|
2019-05-03 09:31:20 +00:00
|
|
|
- os: linux-ppc64le
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b LABEL="linux-ppc64le"
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 OPENSSL_VERSION=1.1.0j
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 OPENSSL_VERSION=1.0.2r
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 LIBRESSL_VERSION=2.9.1
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 LIBRESSL_VERSION=2.8.3
|
2019-04-24 14:11:09 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
2019-05-03 09:31:20 +00:00
|
|
|
env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5
|
2019-05-08 20:15:59 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 BORINGSSL=yes
|
2019-04-17 07:41:13 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2019-04-24 14:11:09 +00:00
|
|
|
env: TARGET=linux2628 FLAGS=
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2019-05-06 20:42:43 +00:00
|
|
|
env: TARGET=generic FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1b
|
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-04-24 14:11:09 +00:00
|
|
|
- make CC=$CC V=1 TARGET=$TARGET $FLAGS
|
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
|