BUILD: travis-ci: make TMPDIR global variable in travis-ci

This patch will reveal osx reg-tests errors (after osx build is repaired).
This commit is contained in:
Ilya Shipitsin 2019-05-10 15:38:52 +05:00 committed by Willy Tarreau
parent 6ea00195c4
commit b9ae7643d8
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ env:
- FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_LUA=1 USE_OPENSSL=1" - FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_LUA=1 USE_OPENSSL=1"
- SSL_LIB=${HOME}/opt/lib - SSL_LIB=${HOME}/opt/lib
- SSL_INC=${HOME}/opt/include - SSL_INC=${HOME}/opt/include
- TMPDIR=/tmp
addons: addons:
apt: apt:
@ -67,11 +68,11 @@ script:
- ./haproxy -vv - ./haproxy -vv
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi
- env TMPDIR=/tmp VTEST_PROGRAM=../vtest/vtest make reg-tests - env VTEST_PROGRAM=../vtest/vtest make reg-tests
after_failure: after_failure:
- | - |
for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do for folder in ${TMPDIR}/*regtest*/vtc.*; do
cat $folder/INFO cat $folder/INFO
cat $folder/LOG cat $folder/LOG
done done