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 | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 16 | matrix: |
| 17 | include: |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 18 | - os: linux |
| 19 | compiler: gcc |
| 20 | env: TARGET=linux2628 FLAGS= |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 21 | - 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 Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 30 | - os: linux |
| 31 | compiler: gcc |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 32 | 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 Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 42 | - os: linux |
| 43 | compiler: clang |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 44 | env: TARGET=linux2628 FLAGS= |
| 45 | - os: osx |
| 46 | compiler: clang |
Ilya Shipitsin | 70e0224 | 2019-05-05 17:43:37 +0500 | [diff] [blame] | 47 | env: TARGET=generic FLAGS= |
Ilya Shipitsin | 17641a7 | 2019-05-06 00:36:21 +0500 | [diff] [blame] | 48 | 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 Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 58 | |
| 59 | install: |
| 60 | - git clone https://github.com/VTest/VTest.git ../vtest |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 61 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
| 62 | - make -C ../vtest FLAGS="-O2 -s -Wall" |
| 63 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 64 | script: |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 65 | - make CC=$CC V=1 TARGET=$TARGET $FLAGS |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 66 | - 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 Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 68 | - ./haproxy -vv |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 69 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi |
| 70 | - 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] | 71 | - env TMPDIR=/tmp VTEST_PROGRAM=../vtest/vtest make reg-tests |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 72 | |
| 73 | after_failure: |
| 74 | - | |
| 75 | for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do |
| 76 | cat $folder/INFO |
| 77 | cat $folder/LOG |
| 78 | done |