blob: 87331fc2cedd1b572a9fc1c6be7c37a6110311b1 [file] [log] [blame]
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +05001sudo: required
2dist: xenial
3
4language: c
5
Ilya Shipitsin054a5b82019-05-03 14:31:20 +05006env:
7 global:
8 - FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_LUA=1 USE_OPENSSL=1"
9 - SSL_LIB=${HOME}/opt/lib
10 - SSL_INC=${HOME}/opt/include
11
Tim Duesterhus88c63a62019-04-24 19:11:09 +050012addons:
13 apt:
14 packages: [ liblua5.3-dev ]
15
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050016matrix:
17 include:
Tim Duesterhus88c63a62019-04-24 19:11:09 +050018 - os: linux
19 compiler: gcc
20 env: TARGET=linux2628 FLAGS=
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050021 - os: linux-ppc64le
22 compiler: gcc
23 env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b LABEL="linux-ppc64le"
24 - os: linux
25 compiler: gcc
26 env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b
27 - os: linux
28 compiler: gcc
29 env: TARGET=linux2628 OPENSSL_VERSION=1.1.0j
Tim Duesterhus88c63a62019-04-24 19:11:09 +050030 - os: linux
31 compiler: gcc
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050032 env: TARGET=linux2628 OPENSSL_VERSION=1.0.2r
33 - os: linux
34 compiler: gcc
35 env: TARGET=linux2628 LIBRESSL_VERSION=2.9.1
36 - os: linux
37 compiler: gcc
38 env: TARGET=linux2628 LIBRESSL_VERSION=2.8.3
39 - os: linux
40 compiler: gcc
41 env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050042 - os: linux
43 compiler: clang
Tim Duesterhus88c63a62019-04-24 19:11:09 +050044 env: TARGET=linux2628 FLAGS=
45 - os: osx
46 compiler: clang
Ilya Shipitsin70e02242019-05-05 17:43:37 +050047 env: TARGET=generic FLAGS=
Ilya Shipitsin17641a72019-05-06 00:36:21 +050048 allow_failures:
49 - os: linux
50 compiler: gcc
51 env: TARGET=linux2628 LIBRESSL_VERSION=2.9.1
52 - os: linux
53 compiler: gcc
54 env: TARGET=linux2628 LIBRESSL_VERSION=2.8.3
55 - os: linux
56 compiler: gcc
57 env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050058
59install:
60 - git clone https://github.com/VTest/VTest.git ../vtest
Tim Duesterhus88c63a62019-04-24 19:11:09 +050061 # Special flags due to: https://github.com/vtest/VTest/issues/12
62 - make -C ../vtest FLAGS="-O2 -s -Wall"
63
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050064script:
Tim Duesterhus88c63a62019-04-24 19:11:09 +050065 - make CC=$CC V=1 TARGET=$TARGET $FLAGS
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050066 - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"; fi
67 - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export DYLD_LIBRARY_PATH="${HOME}/opt/lib:${DYLD_LIBRARY_PATH:-}"; fi
Tim Duesterhus88c63a62019-04-24 19:11:09 +050068 - ./haproxy -vv
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050069 - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi
70 - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi
Frédéric Lécaille6c068152019-05-03 19:16:02 +020071 - env TMPDIR=/tmp VTEST_PROGRAM=../vtest/vtest make reg-tests
Tim Duesterhus88c63a62019-04-24 19:11:09 +050072
73after_failure:
74 - |
75 for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do
76 cat $folder/INFO
77 cat $folder/LOG
78 done