blob: 3083e302ca2cd3fd66c5aa949587d1d5d7416b1b [file] [log] [blame]
Ilya Shipitsinb1faf482020-10-21 15:12:29 +05001dist: focal
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +05002
3language: c
4
Willy Tarreaua3956aa2019-10-17 06:53:55 +02005branches:
6 only:
7 - master
Willy Tarreaua3956aa2019-10-17 06:53:55 +02008
Ilya Shipitsin054a5b82019-05-03 14:31:20 +05009env:
10 global:
Tim Duesterhus9dee2152021-04-09 20:21:35 +020011 - FLAGS="USE_LUA=1 USE_OPENSSL=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_SYSTEMD=1 USE_ZLIB=1"
Ilya Shipitsinb9ae7642019-05-10 15:38:52 +050012 - TMPDIR=/tmp
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050013
Tim Duesterhus88c63a62019-04-24 19:11:09 +050014addons:
15 apt:
Ilya Shipitsin9bf2a1b2020-01-19 12:14:02 +050016 update: true
Tim Duesterhus9dee2152021-04-09 20:21:35 +020017 packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, socat, libpcre3-dev ]
Ilya Shipitsind8db4e62019-05-07 01:42:43 +050018
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050019matrix:
20 include:
Ilya Shipitsin9bf2a1b2020-01-19 12:14:02 +050021 - os: linux
22 arch: ppc64le
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050023 compiler: gcc
Tim Duesterhus9dee2152021-04-09 20:21:35 +020024 if: type == cron
Ilya Shipitsin9bf2a1b2020-01-19 12:14:02 +050025 - os: linux
Ilya Shipitsin49fecd92020-05-07 20:57:26 +050026 arch: arm64
Willy Tarreaud7263862020-03-13 04:10:31 +010027 compiler: gcc
Ilya Shipitsin6f9fe362019-08-19 21:32:53 +050028 if: type == cron
Ilya Shipitsin054a5b82019-05-03 14:31:20 +050029 - os: linux
Ilya Shipitsine6d03582021-04-15 19:16:09 +050030 arch: arm64-graviton2
31 group: edge
32 virt: vm
33 compiler: gcc
34 if: type == cron
35 - os: linux
Tim Duesterhus9dee2152021-04-09 20:21:35 +020036 arch: s390x
37 compiler: gcc
Ilya Shipitsin6f9fe362019-08-19 21:32:53 +050038 if: type == cron
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050039
40install:
Ilya Shipitsin0b038952021-05-15 11:46:15 +050041 - scripts/build-vtest.sh
Tim Duesterhus88c63a62019-04-24 19:11:09 +050042
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050043script:
Tim Duesterhus9dee2152021-04-09 20:21:35 +020044 - make -j$(nproc) ERR=1 TARGET=linux-glibc CC=$CC DEBUG=-DDEBUG_STRICT=1 $FLAGS
Tim Duesterhus88c63a62019-04-24 19:11:09 +050045 - ./haproxy -vv
Tim Duesterhus9dee2152021-04-09 20:21:35 +020046 - ldd haproxy
Willy Tarreaud78cf0f2020-01-24 17:37:35 +010047 - make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
Tim Duesterhus88c63a62019-04-24 19:11:09 +050048
49after_failure:
50 - |
Ilya Shipitsinb9ae7642019-05-10 15:38:52 +050051 for folder in ${TMPDIR}/*regtest*/vtc.*; do
Tim Duesterhus88c63a62019-04-24 19:11:09 +050052 cat $folder/INFO
53 cat $folder/LOG
54 done