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