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 | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 3 | dist: bionic |
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: |
Ilya Shipitsin | 862d693 | 2019-06-16 01:19:27 +0500 | [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=contrib/wurfl WURFL_LIB=contrib/wurfl USE_DEVICEATLAS=1 DEVICEATLAS_SRC=contrib/deviceatlas USE_51DEGREES=1" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 15 | - SSL_LIB=${HOME}/opt/lib |
| 16 | - SSL_INC=${HOME}/opt/include |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 17 | - TMPDIR=/tmp |
Ilya Shipitsin | b41aded | 2019-06-13 20:00:05 +0500 | [diff] [blame] | 18 | - FIFTYONEDEGREES_SRC="contrib/51d/src/pattern" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 19 | |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 20 | addons: |
| 21 | apt: |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 22 | update: true |
| 23 | packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, socat ] |
| 24 | homebrew: |
| 25 | update: true |
| 26 | packages: [ socat ] |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 27 | |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 28 | cache: |
| 29 | directories: |
| 30 | - download-cache |
| 31 | - ${HOME}/opt |
| 32 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 33 | matrix: |
| 34 | include: |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 35 | - os: linux |
| 36 | arch: ppc64le |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 37 | if: type == cron |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 38 | compiler: gcc |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 39 | env: TARGET=linux-glibc OPENSSL_VERSION=1.0.2u |
| 40 | - os: linux |
| 41 | arch: amd64 |
| 42 | if: type != cron |
| 43 | compiler: clang |
| 44 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1d |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 45 | - os: linux |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 46 | arch: arm64 |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 47 | if: type != cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 48 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 49 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1d |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 50 | - os: linux |
Ilya Shipitsin | 3380a4e | 2020-02-19 23:47:56 +0500 | [diff] [blame] | 51 | arch: s390x |
| 52 | if: type != cron |
| 53 | compiler: gcc |
| 54 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1d |
| 55 | before_script: |
| 56 | - rm reg-tests/seamless-reload/abns_socket.vtc # please, see https://github.com/haproxy/haproxy/issues/504 |
| 57 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 58 | if: type == cron |
| 59 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 60 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1d COVERITY_SCAN_PROJECT_NAME="Haproxy" COVERITY_SCAN_BRANCH_PATTERN="*" COVERITY_SCAN_NOTIFICATION_EMAIL="chipitsine@gmail.com" COVERITY_SCAN_BUILD_COMMAND="make CC=clang TARGET=$TARGET $FLAGS 51DEGREES_SRC=$FIFTYONEDEGREES_SRC" |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 61 | script: |
| 62 | - | |
| 63 | if [ ! -z ${COVERITY_SCAN_TOKEN+x} ]; then |
| 64 | make -C contrib/wurfl |
| 65 | curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true |
| 66 | fi |
| 67 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 68 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 69 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 70 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.0l FIFTYONEDEGREES_SRC="contrib/51d/src/trie" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 71 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 72 | if: type != cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 73 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 74 | env: TARGET=linux-glibc LIBRESSL_VERSION=3.0.2 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 75 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 76 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 77 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 78 | env: TARGET=linux-glibc LIBRESSL_VERSION=2.9.2 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 79 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 80 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 81 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 82 | env: TARGET=linux-glibc LIBRESSL_VERSION=2.8.3 EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 83 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 84 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 85 | compiler: clang |
Willy Tarreau | c26b467 | 2019-06-14 18:32:34 +0200 | [diff] [blame] | 86 | env: TARGET=linux-glibc BORINGSSL=yes |
Ilya Shipitsin | 35d20af | 2019-05-09 01:15:59 +0500 | [diff] [blame] | 87 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 88 | if: type != cron |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 89 | compiler: clang |
Willy Tarreau | c26b467 | 2019-06-14 18:32:34 +0200 | [diff] [blame] | 90 | env: TARGET=linux-glibc FLAGS= |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 91 | - os: osx |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 92 | if: type != cron |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 93 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 94 | env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1d |
Ilya Shipitsin | a668761 | 2019-09-19 23:32:30 +0500 | [diff] [blame] | 95 | - os: linux |
| 96 | if: type == cron |
| 97 | compiler: clang |
| 98 | 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=contrib/wurfl WURFL_LIB=contrib/wurfl USE_51DEGREES=1" |
| 99 | before_script: |
| 100 | - git clone http://git.1wt.eu/git/libslz.git/ |
| 101 | - cd libslz && make && make PREFIX=${HOME}/opt install && cd .. |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 102 | |
| 103 | install: |
| 104 | - git clone https://github.com/VTest/VTest.git ../vtest |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 105 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
| 106 | - make -C ../vtest FLAGS="-O2 -s -Wall" |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 107 | - travis_wait 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] | 108 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 109 | script: |
Ilya Shipitsin | 7aed6ef | 2019-12-21 18:10:28 +0500 | [diff] [blame] | 110 | - if [ "$CC" = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"; fi |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 111 | - make -C contrib/wurfl |
Ilya Shipitsin | 1f555da | 2020-02-11 14:31:13 +0500 | [diff] [blame] | 112 | - make -j3 CC=$CC V=1 ERR=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS -L$SSL_LIB -Wl,-rpath,$SSL_LIB" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS" |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 113 | - ./haproxy -vv |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 114 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi |
| 115 | - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi |
Willy Tarreau | d78cf0f | 2020-01-24 17:37:35 +0100 | [diff] [blame] | 116 | - make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 117 | |
| 118 | after_failure: |
| 119 | - | |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 120 | for folder in ${TMPDIR}/*regtest*/vtc.*; do |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 121 | cat $folder/INFO |
| 122 | cat $folder/LOG |
| 123 | done |