]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: travis-ci: make TMPDIR global variable in travis-ci
authorIlya Shipitsin <chipitsine@gmail.com>
Fri, 10 May 2019 10:38:52 +0000 (15:38 +0500)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 May 2019 04:07:47 +0000 (06:07 +0200)
This patch will reveal osx reg-tests errors (after osx build is repaired).

.travis.yml

index c00725d80fb3a7ce8ad6e48eec692f71106aade1..530d168275ecb5bdcfa2b611274d7c69b79b2701 100644 (file)
@@ -8,6 +8,7 @@ env:
     - FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_LUA=1 USE_OPENSSL=1"
     - SSL_LIB=${HOME}/opt/lib
     - SSL_INC=${HOME}/opt/include
+    - TMPDIR=/tmp
 
 addons:
   apt:
@@ -67,11 +68,11 @@ script:
   - ./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
+  - env VTEST_PROGRAM=../vtest/vtest make reg-tests
 
 after_failure:
   - |
-    for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do
+    for folder in ${TMPDIR}/*regtest*/vtc.*; do
       cat $folder/INFO
       cat $folder/LOG
     done