blob: 1aa415aa8d56cf29b59f188f617e927c41fa7907 [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:
41 - git clone https://github.com/VTest/VTest.git ../vtest
Tim Duesterhus88c63a62019-04-24 19:11:09 +050042 # Special flags due to: https://github.com/vtest/VTest/issues/12
Tim Duesterhusb38b5c32021-05-12 21:08:49 +020043 - make -C ../vtest FLAGS="-O2 -s -Wall"
Tim Duesterhus88c63a62019-04-24 19:11:09 +050044
Ilya Shipitsin8a9d55b2019-04-17 12:41:13 +050045script:
Tim Duesterhus9dee2152021-04-09 20:21:35 +020046 - make -j$(nproc) ERR=1 TARGET=linux-glibc CC=$CC DEBUG=-DDEBUG_STRICT=1 $FLAGS
Tim Duesterhus88c63a62019-04-24 19:11:09 +050047 - ./haproxy -vv
Tim Duesterhus9dee2152021-04-09 20:21:35 +020048 - ldd haproxy
Willy Tarreaud78cf0f2020-01-24 17:37:35 +010049 - make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
Tim Duesterhus88c63a62019-04-24 19:11:09 +050050
51after_failure:
52 - |
Ilya Shipitsinb9ae7642019-05-10 15:38:52 +050053 for folder in ${TMPDIR}/*regtest*/vtc.*; do
Tim Duesterhus88c63a62019-04-24 19:11:09 +050054 cat $folder/INFO
55 cat $folder/LOG
56 done