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: |
Ilya Shipitsin | a088d3d | 2019-06-05 02:16:51 +0500 | [diff] [blame] | 8 | - FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_GETADDRINFO=1 USE_TFO=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=contrib/wurfl WURFL_LIB=contrib/wurfl USE_DEVICEATLAS=1 DEVICEATLAS_SRC=contrib/deviceatlas" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 9 | - SSL_LIB=${HOME}/opt/lib |
| 10 | - SSL_INC=${HOME}/opt/include |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 11 | - TMPDIR=/tmp |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 12 | |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 13 | addons: |
| 14 | apt: |
Ilya Shipitsin | a088d3d | 2019-06-05 02:16:51 +0500 | [diff] [blame] | 15 | packages: [ liblua5.3-dev, libsystemd-dev ] |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 16 | |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 17 | cache: |
| 18 | directories: |
| 19 | - download-cache |
| 20 | - ${HOME}/opt |
| 21 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 22 | matrix: |
| 23 | include: |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 24 | - os: linux |
| 25 | compiler: gcc |
| 26 | env: TARGET=linux2628 FLAGS= |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 27 | - os: linux-ppc64le |
| 28 | compiler: gcc |
| 29 | env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b LABEL="linux-ppc64le" |
| 30 | - os: linux |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 31 | compiler: clang |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 32 | env: TARGET=linux2628 OPENSSL_VERSION=1.1.1b |
| 33 | - os: linux |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 34 | compiler: clang |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 35 | env: TARGET=linux2628 OPENSSL_VERSION=1.1.0j |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 36 | - os: linux |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 37 | compiler: clang |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 38 | env: TARGET=linux2628 OPENSSL_VERSION=1.0.2r |
| 39 | - os: linux |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 40 | compiler: clang |
Ilya Shipitsin | a088d3d | 2019-06-05 02:16:51 +0500 | [diff] [blame] | 41 | env: TARGET=linux2628 LIBRESSL_VERSION=2.9.2 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 42 | - os: linux |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 43 | compiler: clang |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 44 | env: TARGET=linux2628 LIBRESSL_VERSION=2.8.3 |
| 45 | - os: linux |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 46 | compiler: clang |
Ilya Shipitsin | a088d3d | 2019-06-05 02:16:51 +0500 | [diff] [blame] | 47 | env: TARGET=linux2628 LIBRESSL_VERSION=2.7.5 EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 48 | - os: linux |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 49 | compiler: clang |
Ilya Shipitsin | 35d20af | 2019-05-09 01:15:59 +0500 | [diff] [blame] | 50 | env: TARGET=linux2628 BORINGSSL=yes |
| 51 | - os: linux |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 52 | compiler: clang |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 53 | env: TARGET=linux2628 FLAGS= |
| 54 | - os: osx |
| 55 | compiler: clang |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 56 | env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1b |
Ilya Shipitsin | a088d3d | 2019-06-05 02:16:51 +0500 | [diff] [blame] | 57 | - os: windows |
| 58 | install: |
| 59 | - choco install bash make libssl-devel cygwin-devel gcc-core libgcc1 binutils lua-devel libpcre-devel zlib-devel --source cygwin |
| 60 | script: |
| 61 | - C:\\tools\\cygwin\\bin\\bash -lc 'cd $OLDPWD && make TARGET=cygwin USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_THREAD=1 && ./haproxy -vv' |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 62 | |
| 63 | install: |
| 64 | - git clone https://github.com/VTest/VTest.git ../vtest |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 65 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
| 66 | - make -C ../vtest FLAGS="-O2 -s -Wall" |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 67 | - 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] | 68 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 69 | script: |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 70 | - if [ "${CC}" = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"; fi |
| 71 | - make -C contrib/wurfl |
Ilya Shipitsin | a088d3d | 2019-06-05 02:16:51 +0500 | [diff] [blame] | 72 | - make -j3 CC=$CC V=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" EXTRA_OBJS="$EXTRA_OBJS" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 73 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"; fi |
| 74 | - 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] | 75 | - ./haproxy -vv |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 76 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi |
| 77 | - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 78 | - env VTEST_PROGRAM=../vtest/vtest make reg-tests |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 79 | |
| 80 | after_failure: |
| 81 | - | |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 82 | for folder in ${TMPDIR}/*regtest*/vtc.*; do |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 83 | cat $folder/INFO |
| 84 | cat $folder/LOG |
| 85 | done |