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 | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 3 | sudo: required |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 4 | dist: bionic |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 5 | |
| 6 | language: c |
| 7 | |
Willy Tarreau | a3956aa | 2019-10-17 06:53:55 +0200 | [diff] [blame] | 8 | branches: |
| 9 | only: |
| 10 | - master |
| 11 | - next |
| 12 | |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 13 | env: |
| 14 | global: |
Ilya Shipitsin | 862d693 | 2019-06-16 01:19:27 +0500 | [diff] [blame] | 15 | - 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] | 16 | - SSL_LIB=${HOME}/opt/lib |
| 17 | - SSL_INC=${HOME}/opt/include |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 18 | - TMPDIR=/tmp |
Ilya Shipitsin | b41aded | 2019-06-13 20:00:05 +0500 | [diff] [blame] | 19 | - FIFTYONEDEGREES_SRC="contrib/51d/src/pattern" |
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 | a668761 | 2019-09-19 23:32:30 +0500 | [diff] [blame] | 23 | packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev ] |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 24 | |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 25 | cache: |
| 26 | directories: |
| 27 | - download-cache |
| 28 | - ${HOME}/opt |
| 29 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 30 | matrix: |
| 31 | include: |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 32 | - os: linux-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 | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 35 | env: TARGET=linux-glibc OPENSSL_VERSION=1.0.2t LABEL="linux-ppc64le" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 36 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 37 | if: type != cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 38 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 39 | env: TARGET=linux-glibc OPENSSL_VERSION=1.1.1d |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 40 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 41 | if: type == cron |
| 42 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 43 | 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] | 44 | script: |
| 45 | - | |
| 46 | if [ ! -z ${COVERITY_SCAN_TOKEN+x} ]; then |
| 47 | make -C contrib/wurfl |
| 48 | curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true |
| 49 | fi |
| 50 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 51 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 52 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 53 | 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] | 54 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 55 | if: type != cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 56 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 57 | env: TARGET=linux-glibc LIBRESSL_VERSION=3.0.2 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 58 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 59 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 60 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 61 | env: TARGET=linux-glibc LIBRESSL_VERSION=2.9.2 |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 62 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 63 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 64 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 65 | 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] | 66 | - os: linux |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 67 | if: type == cron |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 68 | compiler: clang |
Willy Tarreau | c26b467 | 2019-06-14 18:32:34 +0200 | [diff] [blame] | 69 | env: TARGET=linux-glibc BORINGSSL=yes |
Ilya Shipitsin | 35d20af | 2019-05-09 01:15:59 +0500 | [diff] [blame] | 70 | - os: linux |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 71 | if: type != cron |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 72 | compiler: clang |
Willy Tarreau | c26b467 | 2019-06-14 18:32:34 +0200 | [diff] [blame] | 73 | env: TARGET=linux-glibc FLAGS= |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 74 | - os: osx |
Ilya Shipitsin | 1b77262 | 2019-08-02 22:59:03 +0500 | [diff] [blame] | 75 | if: type != cron |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 76 | compiler: clang |
Ilya Shipitsin | 632cae2 | 2019-10-27 20:16:29 +0500 | [diff] [blame] | 77 | env: TARGET=osx FLAGS="USE_OPENSSL=1" OPENSSL_VERSION=1.1.1d |
| 78 | # - os: windows |
| 79 | # if: type == cron |
| 80 | # install: |
| 81 | # - choco install bash make libssl-devel cygwin-devel gcc-core libgcc1 binutils lua-devel libpcre-devel zlib-devel --source cygwin |
| 82 | # script: |
| 83 | # - 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 | a668761 | 2019-09-19 23:32:30 +0500 | [diff] [blame] | 84 | - os: linux |
| 85 | if: type == cron |
| 86 | compiler: clang |
| 87 | 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" |
| 88 | before_script: |
| 89 | - git clone http://git.1wt.eu/git/libslz.git/ |
| 90 | - cd libslz && make && make PREFIX=${HOME}/opt install && cd .. |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 91 | |
| 92 | install: |
| 93 | - git clone https://github.com/VTest/VTest.git ../vtest |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 94 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
| 95 | - make -C ../vtest FLAGS="-O2 -s -Wall" |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 96 | - 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] | 97 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 98 | script: |
Ilya Shipitsin | 46166c2 | 2019-05-22 20:12:15 +0500 | [diff] [blame] | 99 | - make -C contrib/wurfl |
Ilya Shipitsin | b41aded | 2019-06-13 20:00:05 +0500 | [diff] [blame] | 100 | - make -j3 CC=$CC V=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS" |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 101 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"; fi |
| 102 | - 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] | 103 | - ./haproxy -vv |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 104 | - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ldd haproxy; fi |
| 105 | - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then otool -L haproxy; fi |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 106 | - env VTEST_PROGRAM=../vtest/vtest make reg-tests |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 107 | |
| 108 | after_failure: |
| 109 | - | |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 110 | for folder in ${TMPDIR}/*regtest*/vtc.*; do |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 111 | cat $folder/INFO |
| 112 | cat $folder/LOG |
| 113 | done |