blob: f9a13586f5e1387e42baac7164cfdc76cb65ce78 [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
48 compiler: clang
Tim Duesterhus88c63a62019-04-24 19:11:09 +050049 env: TARGET=linux2628 FLAGS=
50 - os: osx
51 compiler: clang
Ilya Shipitsind8db4e62019-05-07 01:42:43 +050052 env: TARGET=generic FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1b
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050053
54install:
55 - git clone https://github.com/VTest/VTest.git ../vtest
Tim Duesterhus88c63a62019-04-24 19:11:09 +050056 # Special flags due to: https://github.com/vtest/VTest/issues/12
57 - make -C ../vtest FLAGS="-O2 -s -Wall"
Ilya Shipitsind8db4e62019-05-07 01:42:43 +050058 - scripts/build-ssl.sh > build-ssl.log 2>&1 || (cat build-ssl.log && exit 1)
Tim Duesterhus88c63a62019-04-24 19:11:09 +050059
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050060script:
Tim Duesterhus88c63a62019-04-24 19:11:09 +050061 - make CC=$CC V=1 TARGET=$TARGET $FLAGS
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050062 - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"; fi
63 - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export DYLD_LIBRARY_PATH="${HOME}/opt/lib:${DYLD_LIBRARY_PATH:-}"; fi
Tim Duesterhus88c63a62019-04-24 19:11:09 +050064 - ./haproxy -vv
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050065 - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi
66 - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi
Frédéric Lécaille6c068152019-05-03 19:16:02 +020067 - env TMPDIR=/tmp VTEST_PROGRAM=../vtest/vtest make reg-tests
Tim Duesterhus88c63a62019-04-24 19:11:09 +050068
69after_failure:
70 - |
71 for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do
72 cat $folder/INFO
73 cat $folder/LOG
74 done