Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 1 | sudo: required |
| 2 | dist: xenial |
| 3 | |
| 4 | language: c |
| 5 | |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 6 | env: |
| 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 Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 12 | addons: |
| 13 | apt: |
| 14 | packages: [ liblua5.3-dev ] |
| 15 | |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 16 | cache: |
| 17 | directories: |
| 18 | - download-cache |
| 19 | - ${HOME}/opt |
| 20 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 21 | matrix: |
| 22 | include: |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 23 | - os: linux |
| 24 | compiler: gcc |
| 25 | env: TARGET=linux2628 FLAGS= |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 26 | - 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 Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 35 | - os: linux |
| 36 | compiler: gcc |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 37 | 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 Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 47 | - os: linux |
| 48 | compiler: clang |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 49 | env: TARGET=linux2628 FLAGS= |
| 50 | - os: osx |
| 51 | compiler: clang |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 52 | env: TARGET=generic FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1b |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 53 | |
| 54 | install: |
| 55 | - git clone https://github.com/VTest/VTest.git ../vtest |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 56 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
| 57 | - make -C ../vtest FLAGS="-O2 -s -Wall" |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 58 | - scripts/build-ssl.sh > build-ssl.log 2>&1 || (cat build-ssl.log && exit 1) |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 59 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 60 | script: |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 61 | - make CC=$CC V=1 TARGET=$TARGET $FLAGS |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 62 | - 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 Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 64 | - ./haproxy -vv |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 65 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi |
| 66 | - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi |
Frédéric Lécaille | 6c06815 | 2019-05-03 19:16:02 +0200 | [diff] [blame] | 67 | - env TMPDIR=/tmp VTEST_PROGRAM=../vtest/vtest make reg-tests |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 68 | |
| 69 | after_failure: |
| 70 | - | |
| 71 | for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do |
| 72 | cat $folder/INFO |
| 73 | cat $folder/LOG |
| 74 | done |