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 | 2f9802b | 2020-04-03 00:07:17 +0500 | [diff] [blame] | 19 | - DEBUG_OPTIONS="DEBUG_STRICT=1" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 20 | |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 21 | addons: |
| 22 | apt: |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 23 | update: true |
Ilya Shipitsin | 663825e | 2020-01-24 11:36:41 +0500 | [diff] [blame] | 24 | packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, clang-9, socat ] |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 25 | homebrew: |
| 26 | update: true |
| 27 | packages: [ socat ] |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 28 | |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 29 | cache: |
| 30 | directories: |
| 31 | - download-cache |
| 32 | - ${HOME}/opt |
| 33 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 34 | matrix: |
| 35 | include: |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 36 | - os: linux |
| 37 | arch: ppc64le |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 38 | if: type == cron |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 39 | compiler: gcc |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 40 | env: TARGET=linux-glibc OPENSSL_VERSION=1.0.2u |
| 41 | - os: linux |
| 42 | arch: amd64 |
Ilya Shipitsin | ceb060e | 2020-03-18 21:27:39 +0500 | [diff] [blame] | 43 | if: type == push |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 44 | compiler: clang |
Ilya Shipitsin | 197af01 | 2020-04-03 00:20:46 +0500 | [diff] [blame] | 45 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1f CC=clang-9 |
Ilya Shipitsin | 49fecd9 | 2020-05-07 20:57:26 +0500 | [diff] [blame] | 46 | - os: linux |
| 47 | arch: arm64 |
| 48 | if: type == push |
| 49 | compiler: clang |
| 50 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1f CC=clang-9 |
Ilya Shipitsin | 8d76af5 | 2020-05-08 15:25:56 +0500 | [diff] [blame] | 51 | addons: |
| 52 | apt: |
| 53 | update: true |
| 54 | packages: [ liblua5.3-dev, libsystemd-dev, clang-9, socat ] |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 55 | - os: linux |
Willy Tarreau | d726386 | 2020-03-13 04:10:31 +0100 | [diff] [blame] | 56 | arch: s390x |
Ilya Shipitsin | ceb060e | 2020-03-18 21:27:39 +0500 | [diff] [blame] | 57 | if: type == push |
Willy Tarreau | d726386 | 2020-03-13 04:10:31 +0100 | [diff] [blame] | 58 | compiler: gcc |
Ilya Shipitsin | 197af01 | 2020-04-03 00:20:46 +0500 | [diff] [blame] | 59 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1f |
Willy Tarreau | d726386 | 2020-03-13 04:10:31 +0100 | [diff] [blame] | 60 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 61 | if: type == cron |
| 62 | compiler: clang |
Ilya Shipitsin | 197af01 | 2020-04-03 00:20:46 +0500 | [diff] [blame] | 63 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1f 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] | 64 | script: |
| 65 | - | |
| 66 | if [ ! -z ${COVERITY_SCAN_TOKEN+x} ]; then |
| 67 | make -C contrib/wurfl |
| 68 | curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true |
| 69 | fi |
| 70 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 71 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 72 | compiler: clang |
Ilya Shipitsin | 663825e | 2020-01-24 11:36:41 +0500 | [diff] [blame] | 73 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.0l FIFTYONEDEGREES_SRC="contrib/51d/src/trie" CC=clang-9 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 74 | - os: linux |
Ilya Shipitsin | ceb060e | 2020-03-18 21:27:39 +0500 | [diff] [blame] | 75 | if: type == push |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 76 | compiler: clang |
Ilya Shipitsin | b7faead | 2020-05-09 21:36:04 +0500 | [diff] [blame] | 77 | env: TARGET=linux-glibc LIBRESSL_VERSION=3.1.1 CC=clang-9 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 78 | - os: linux |
Ilya Shipitsin | 2f9802b | 2020-04-03 00:07:17 +0500 | [diff] [blame] | 79 | env: DEBUG_OPTIONS="" |
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 | b7faead | 2020-05-09 21:36:04 +0500 | [diff] [blame] | 82 | env: TARGET=linux-glibc LIBRESSL_VERSION=3.0.2 CC=clang-9 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +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 |
Ilya Shipitsin | b7faead | 2020-05-09 21:36:04 +0500 | [diff] [blame] | 86 | env: TARGET=linux-glibc LIBRESSL_VERSION=2.9.2 EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" CC=clang-9 |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 87 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 88 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 89 | compiler: clang |
Willy Tarreau | 0df0982 | 2020-03-16 08:10:56 +0100 | [diff] [blame] | 90 | env: TARGET=linux-glibc BORINGSSL=yes |
Ilya Shipitsin | 35d20af | 2019-05-09 01:15:59 +0500 | [diff] [blame] | 91 | - os: linux |
Ilya Shipitsin | ceb060e | 2020-03-18 21:27:39 +0500 | [diff] [blame] | 92 | if: type == push |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 93 | compiler: clang |
Ilya Shipitsin | 663825e | 2020-01-24 11:36:41 +0500 | [diff] [blame] | 94 | env: TARGET=linux-glibc FLAGS= CC=clang-9 |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 95 | - os: osx |
Ilya Shipitsin | ceb060e | 2020-03-18 21:27:39 +0500 | [diff] [blame] | 96 | if: type == push |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 97 | compiler: clang |
Ilya Shipitsin | 197af01 | 2020-04-03 00:20:46 +0500 | [diff] [blame] | 98 | env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1f |
Ilya Shipitsin | a668761 | 2019-09-19 23:32:30 +0500 | [diff] [blame] | 99 | - os: linux |
| 100 | if: type == cron |
| 101 | compiler: clang |
Ilya Shipitsin | 663825e | 2020-01-24 11:36:41 +0500 | [diff] [blame] | 102 | 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" CC=clang-9 |
Ilya Shipitsin | a668761 | 2019-09-19 23:32:30 +0500 | [diff] [blame] | 103 | before_script: |
| 104 | - git clone http://git.1wt.eu/git/libslz.git/ |
| 105 | - cd libslz && make && make PREFIX=${HOME}/opt install && cd .. |
Ilya Shipitsin | 49fecd9 | 2020-05-07 20:57:26 +0500 | [diff] [blame] | 106 | allow_failures: |
| 107 | - os: linux |
| 108 | arch: arm64 |
| 109 | if: type == push |
| 110 | compiler: clang |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 111 | |
| 112 | install: |
| 113 | - git clone https://github.com/VTest/VTest.git ../vtest |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 114 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
| 115 | - make -C ../vtest FLAGS="-O2 -s -Wall" |
Willy Tarreau | b530bac | 2020-05-08 14:18:50 +0200 | [diff] [blame] | 116 | - travis_wait 60 bash -c '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] | 117 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 118 | script: |
Willy Tarreau | 98ebeca | 2020-03-18 09:35:58 +0100 | [diff] [blame] | 119 | - 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] | 120 | - make -C contrib/wurfl |
Ilya Shipitsin | 2f9802b | 2020-04-03 00:07:17 +0500 | [diff] [blame] | 121 | - make -j3 CC=$CC V=1 ERR=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" ADDLIB="-Wl,-rpath,$SSL_LIB" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS" $DEBUG_OPTIONS |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 122 | - ./haproxy -vv |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 123 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi |
| 124 | - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi |
Willy Tarreau | d78cf0f | 2020-01-24 17:37:35 +0100 | [diff] [blame] | 125 | - make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 126 | |
| 127 | after_failure: |
| 128 | - | |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 129 | for folder in ${TMPDIR}/*regtest*/vtc.*; do |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 130 | cat $folder/INFO |
| 131 | cat $folder/LOG |
| 132 | done |