Willy Tarreau | a3956aa | 2019-10-17 06:53:55 +0200 | [diff] [blame] | 1 | # build status appears on https://travis-ci.com/haproxy/haproxy |
| 2 | |
Ilya Shipitsin | b1faf48 | 2020-10-21 15:12:29 +0500 | [diff] [blame] | 3 | dist: focal |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 4 | |
| 5 | language: c |
| 6 | |
Willy Tarreau | a3956aa | 2019-10-17 06:53:55 +0200 | [diff] [blame] | 7 | branches: |
| 8 | only: |
| 9 | - master |
| 10 | - next |
| 11 | |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 12 | env: |
| 13 | global: |
Willy Tarreau | 57610c6 | 2021-04-02 16:39:44 +0200 | [diff] [blame] | 14 | - FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=addons/wurfl/dummy WURFL_LIB=addons/wurfl/dummy USE_DEVICEATLAS=1 DEVICEATLAS_SRC=addons/deviceatlas/dummy USE_51DEGREES=1" |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 15 | - TMPDIR=/tmp |
Willy Tarreau | 977209d | 2021-04-02 16:12:32 +0200 | [diff] [blame] | 16 | - FIFTYONEDEGREES_SRC="addons/51degrees/dummy/pattern" |
Ilya Shipitsin | 2f9802b | 2020-04-03 00:07:17 +0500 | [diff] [blame] | 17 | - DEBUG_OPTIONS="DEBUG_STRICT=1" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 18 | |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 19 | addons: |
| 20 | apt: |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 21 | update: true |
Ilya Shipitsin | b1faf48 | 2020-10-21 15:12:29 +0500 | [diff] [blame] | 22 | packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, clang-9, socat, ninja-build, libpcre3-dev ] |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 23 | |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 24 | cache: |
| 25 | directories: |
| 26 | - download-cache |
| 27 | - ${HOME}/opt |
| 28 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 29 | matrix: |
| 30 | include: |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 31 | - os: linux |
| 32 | arch: ppc64le |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 33 | if: type == cron |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 34 | compiler: gcc |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 35 | env: TARGET=linux-glibc OPENSSL_VERSION=1.0.2u |
Ilya Shipitsin | 90ff590 | 2020-07-30 01:47:55 +0500 | [diff] [blame] | 36 | name: openssl-1.0.2 |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 37 | - os: linux |
Ilya Shipitsin | 49fecd9 | 2020-05-07 20:57:26 +0500 | [diff] [blame] | 38 | arch: arm64 |
| 39 | if: type == push |
| 40 | compiler: clang |
Ilya Shipitsin | 73b520b | 2020-07-30 01:39:24 +0500 | [diff] [blame] | 41 | env: TARGET=linux-glibc CC=clang-9 |
Ilya Shipitsin | 90ff590 | 2020-07-30 01:47:55 +0500 | [diff] [blame] | 42 | name: openssl-1.1.1 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 43 | - os: linux |
Willy Tarreau | d726386 | 2020-03-13 04:10:31 +0100 | [diff] [blame] | 44 | arch: s390x |
Ilya Shipitsin | ceb060e | 2020-03-18 21:27:39 +0500 | [diff] [blame] | 45 | if: type == push |
Willy Tarreau | d726386 | 2020-03-13 04:10:31 +0100 | [diff] [blame] | 46 | compiler: gcc |
Ilya Shipitsin | 90ff590 | 2020-07-30 01:47:55 +0500 | [diff] [blame] | 47 | env: TARGET=linux-glibc |
| 48 | name: openssl-1.1.1 |
Willy Tarreau | d726386 | 2020-03-13 04:10:31 +0100 | [diff] [blame] | 49 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 50 | if: type == cron |
| 51 | compiler: clang |
Willy Tarreau | 977209d | 2021-04-02 16:12:32 +0200 | [diff] [blame] | 52 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.0l FIFTYONEDEGREES_SRC="addons/51degrees/dummy/trie" CC=clang-9 |
Ilya Shipitsin | 90ff590 | 2020-07-30 01:47:55 +0500 | [diff] [blame] | 53 | name: openssl-1.1.1 | 51d trie |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 54 | - os: linux |
Ilya Shipitsin | 2f9802b | 2020-04-03 00:07:17 +0500 | [diff] [blame] | 55 | env: DEBUG_OPTIONS="" |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 56 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 57 | compiler: clang |
Ilya Shipitsin | b7faead | 2020-05-09 21:36:04 +0500 | [diff] [blame] | 58 | env: TARGET=linux-glibc LIBRESSL_VERSION=3.0.2 CC=clang-9 |
Ilya Shipitsin | 90ff590 | 2020-07-30 01:47:55 +0500 | [diff] [blame] | 59 | name: libressl-3.0.2 | ERR= |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 60 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 61 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 62 | compiler: clang |
Willy Tarreau | 57610c6 | 2021-04-02 16:39:44 +0200 | [diff] [blame] | 63 | env: TARGET=linux-glibc FLAGS="USE_SLZ=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=addons/wurfl/dummy WURFL_LIB=addons/wurfl/dummy USE_51DEGREES=1" CC=clang-9 |
Ilya Shipitsin | a668761 | 2019-09-19 23:32:30 +0500 | [diff] [blame] | 64 | before_script: |
Ilya Shipitsin | 13dd451 | 2020-05-19 01:47:07 +0500 | [diff] [blame] | 65 | - git clone https://github.com/wtarreau/libslz |
Ilya Shipitsin | a668761 | 2019-09-19 23:32:30 +0500 | [diff] [blame] | 66 | - cd libslz && make && make PREFIX=${HOME}/opt install && cd .. |
Ilya Shipitsin | 61d85b0 | 2020-07-31 02:08:13 +0500 | [diff] [blame] | 67 | - export SLZ_INC=${HOME}/opt/include SLZ_LIB=${HOME}/opt/lib |
| 68 | - export ADDLIB="-Wl,-rpath,$SLZ_LIB" |
Ilya Shipitsin | 90ff590 | 2020-07-30 01:47:55 +0500 | [diff] [blame] | 69 | name: openssl-1.1.1 | slz | pcre2 |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 70 | |
| 71 | install: |
| 72 | - git clone https://github.com/VTest/VTest.git ../vtest |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 73 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
| 74 | - make -C ../vtest FLAGS="-O2 -s -Wall" |
Ilya Shipitsin | 73b520b | 2020-07-30 01:39:24 +0500 | [diff] [blame] | 75 | - | |
| 76 | if [ ! -z ${OPENSSL_VERSION+x} ] || [ ! -z ${LIBRESSL_VERSION+x} ] || [ ! -z ${BORINGSSL+x} ]; then |
| 77 | travis_wait bash -c 'scripts/build-ssl.sh >build-ssl.log 2>&1' || (cat build-ssl.log && exit 1) |
| 78 | export SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include |
Ilya Shipitsin | 61d85b0 | 2020-07-31 02:08:13 +0500 | [diff] [blame] | 79 | export ADDLIB="-Wl,-rpath,$SSL_LIB" |
Ilya Shipitsin | 73b520b | 2020-07-30 01:39:24 +0500 | [diff] [blame] | 80 | fi |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 81 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 82 | script: |
Ilya Shipitsin | e1c0e69 | 2020-08-27 21:00:09 +0500 | [diff] [blame] | 83 | - if [ "${CC%-*}" = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address" ASAN_OPTIONS="log_path=asan.log"; fi |
Willy Tarreau | 57610c6 | 2021-04-02 16:39:44 +0200 | [diff] [blame] | 84 | - make -C addons/wurfl/dummy |
Ilya Shipitsin | bab6752 | 2020-08-04 15:39:41 +0500 | [diff] [blame] | 85 | - make -j3 CC=$CC CPU_CFLAGS.generic="-O1" V=1 ERR=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" ADDLIB="$ADDLIB" SSL_LIB="$SSL_LIB" SSL_INC="$SSL_INC" SLZ_LIB="$SLZ_LIB" SLZ_INC="$SLZ_INC" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS" $DEBUG_OPTIONS |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 86 | - ./haproxy -vv |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 87 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi |
| 88 | - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi |
Willy Tarreau | d78cf0f | 2020-01-24 17:37:35 +0100 | [diff] [blame] | 89 | - make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel |
Ilya Shipitsin | e1c0e69 | 2020-08-27 21:00:09 +0500 | [diff] [blame] | 90 | - | |
| 91 | if ls asan.log* 1>/dev/null 2>&1; then |
| 92 | cat asan.log* |
| 93 | exit 1 |
| 94 | fi |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 95 | |
| 96 | after_failure: |
| 97 | - | |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 98 | for folder in ${TMPDIR}/*regtest*/vtc.*; do |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 99 | cat $folder/INFO |
| 100 | cat $folder/LOG |
| 101 | done |