mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 14:05:12 +00:00
6c06815751
TMPDIR default value may be too long to create UNIX sockets for the stats
used during the reg tests. Indeed vtest builds its temporary working directory
${tmpdir} variable from TMPDIR variable, with /tmp as value if not already set.
This is the case on Linux contrary to OS X which sets TMPDIR with a too much long
value.
With this path we revert the part of 88c63a6
commit which tried to shorten this
TMPDIR value modifying script/run-regtests.sh. Unfortunately this was not
sufficient. Furthermore this patch force TMPDIR to /tmp value for all the OS'es.
Thank you to Tim Düsterhus and Ilya for having helped on this issue.
79 lines
2.0 KiB
YAML
79 lines
2.0 KiB
YAML
sudo: required
|
|
dist: xenial
|
|
|
|
language: c
|
|
|
|
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
|
|
|
|
addons:
|
|
apt:
|
|
packages: [ liblua5.3-dev ]
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
compiler: gcc
|
|
env: TARGET=linux2628 FLAGS=
|
|
- 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
|
|
- os: linux
|
|
compiler: gcc
|
|
env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5
|
|
- os: linux
|
|
compiler: clang
|
|
env: TARGET=linux2628 FLAGS=
|
|
- os: osx
|
|
compiler: clang
|
|
env: TARGET=generic FLAGS=
|
|
allow_failures:
|
|
- os: linux
|
|
compiler: gcc
|
|
env: TARGET=linux2628 LIBRESSL_VERSION=2.9.1
|
|
- os: linux
|
|
compiler: gcc
|
|
env: TARGET=linux2628 LIBRESSL_VERSION=2.8.3
|
|
- os: linux
|
|
compiler: gcc
|
|
env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5
|
|
|
|
install:
|
|
- git clone https://github.com/VTest/VTest.git ../vtest
|
|
# Special flags due to: https://github.com/vtest/VTest/issues/12
|
|
- make -C ../vtest FLAGS="-O2 -s -Wall"
|
|
|
|
script:
|
|
- make CC=$CC V=1 TARGET=$TARGET $FLAGS
|
|
- 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
|
|
- ./haproxy -vv
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi
|
|
- env TMPDIR=/tmp VTEST_PROGRAM=../vtest/vtest make reg-tests
|
|
|
|
after_failure:
|
|
- |
|
|
for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do
|
|
cat $folder/INFO
|
|
cat $folder/LOG
|
|
done
|