blob: c00725d80fb3a7ce8ad6e48eec692f71106aade1 [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 Shipitsind8db4e62019-05-07 01:42:43 +050016cache:
17 directories:
18 - download-cache
19 - ${HOME}/opt
20
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050021matrix:
22 include:
Tim Duesterhus88c63a62019-04-24 19:11:09 +050023 - os: linux
24 compiler: gcc
25 env: TARGET=linux2628 FLAGS=
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050026 - os: linux-ppc64le
27 compiler: gcc
28 env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b LABEL="linux-ppc64le"
29 - os: linux
30 compiler: gcc
31 env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b
32 - os: linux
33 compiler: gcc
34 env: TARGET=linux2628 OPENSSL_VERSION=1.1.0j
Tim Duesterhus88c63a62019-04-24 19:11:09 +050035 - os: linux
36 compiler: gcc
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050037 env: TARGET=linux2628 OPENSSL_VERSION=1.0.2r
38 - os: linux
39 compiler: gcc
40 env: TARGET=linux2628 LIBRESSL_VERSION=2.9.1
41 - os: linux
42 compiler: gcc
43 env: TARGET=linux2628 LIBRESSL_VERSION=2.8.3
44 - os: linux
45 compiler: gcc
46 env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050047 - os: linux
Ilya Shipitsin35d20af2019-05-09 01:15:59 +050048 compiler: gcc
49 env: TARGET=linux2628 BORINGSSL=yes
50 - os: linux
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050051 compiler: clang
Tim Duesterhus88c63a62019-04-24 19:11:09 +050052 env: TARGET=linux2628 FLAGS=
53 - os: osx
54 compiler: clang
Ilya Shipitsind8db4e62019-05-07 01:42:43 +050055 env: TARGET=generic FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1b
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050056
57install:
58 - git clone https://github.com/VTest/VTest.git ../vtest
Tim Duesterhus88c63a62019-04-24 19:11:09 +050059 # Special flags due to: https://github.com/vtest/VTest/issues/12
60 - make -C ../vtest FLAGS="-O2 -s -Wall"
Ilya Shipitsind8db4e62019-05-07 01:42:43 +050061 - scripts/build-ssl.sh > build-ssl.log 2>&1 || (cat build-ssl.log && exit 1)
Tim Duesterhus88c63a62019-04-24 19:11:09 +050062
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050063script:
Tim Duesterhus88c63a62019-04-24 19:11:09 +050064 - make CC=$CC V=1 TARGET=$TARGET $FLAGS
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050065 - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"; fi
66 - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export DYLD_LIBRARY_PATH="${HOME}/opt/lib:${DYLD_LIBRARY_PATH:-}"; fi
Tim Duesterhus88c63a62019-04-24 19:11:09 +050067 - ./haproxy -vv
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050068 - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi
69 - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi
Frédéric Lécaille6c068152019-05-03 19:16:02 +020070 - env TMPDIR=/tmp VTEST_PROGRAM=../vtest/vtest make reg-tests
Tim Duesterhus88c63a62019-04-24 19:11:09 +050071
72after_failure:
73 - |
74 for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do
75 cat $folder/INFO
76 cat $folder/LOG
77 done