Ilya Shipitsin | b1faf48 | 2020-10-21 15:12:29 +0500 | [diff] [blame] | 1 | dist: focal |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 2 | |
3 | language: c | ||||
4 | |||||
Willy Tarreau | a3956aa | 2019-10-17 06:53:55 +0200 | [diff] [blame] | 5 | branches: |
6 | only: | ||||
7 | - master | ||||
Willy Tarreau | a3956aa | 2019-10-17 06:53:55 +0200 | [diff] [blame] | 8 | |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 9 | env: |
10 | global: | ||||
Tim Duesterhus | 9dee215 | 2021-04-09 20:21:35 +0200 | [diff] [blame] | 11 | - FLAGS="USE_LUA=1 USE_OPENSSL=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_SYSTEMD=1 USE_ZLIB=1" |
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 12 | - TMPDIR=/tmp |
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 | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 16 | update: true |
Tim Duesterhus | 9dee215 | 2021-04-09 20:21:35 +0200 | [diff] [blame] | 17 | packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, socat, libpcre3-dev ] |
Ilya Shipitsin | d8db4e6 | 2019-05-07 01:42:43 +0500 | [diff] [blame] | 18 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 19 | matrix: |
20 | include: | ||||
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 21 | - os: linux |
22 | arch: ppc64le | ||||
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 23 | compiler: gcc |
Tim Duesterhus | 9dee215 | 2021-04-09 20:21:35 +0200 | [diff] [blame] | 24 | if: type == cron |
Ilya Shipitsin | 9bf2a1b | 2020-01-19 12:14:02 +0500 | [diff] [blame] | 25 | - os: linux |
Ilya Shipitsin | 49fecd9 | 2020-05-07 20:57:26 +0500 | [diff] [blame] | 26 | arch: arm64 |
Willy Tarreau | d726386 | 2020-03-13 04:10:31 +0100 | [diff] [blame] | 27 | compiler: gcc |
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 28 | if: type == cron |
Ilya Shipitsin | 054a5b8 | 2019-05-03 14:31:20 +0500 | [diff] [blame] | 29 | - os: linux |
Ilya Shipitsin | e6d0358 | 2021-04-15 19:16:09 +0500 | [diff] [blame] | 30 | arch: arm64-graviton2 |
31 | group: edge | ||||
32 | virt: vm | ||||
33 | compiler: gcc | ||||
34 | if: type == cron | ||||
35 | - os: linux | ||||
Tim Duesterhus | 9dee215 | 2021-04-09 20:21:35 +0200 | [diff] [blame] | 36 | arch: s390x |
37 | compiler: gcc | ||||
Ilya Shipitsin | 6f9fe36 | 2019-08-19 21:32:53 +0500 | [diff] [blame] | 38 | if: type == cron |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 39 | |
40 | install: | ||||
41 | - git clone https://github.com/VTest/VTest.git ../vtest | ||||
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 42 | # Special flags due to: https://github.com/vtest/VTest/issues/12 |
Tim Duesterhus | e61f53e | 2021-05-10 22:54:31 +0200 | [diff] [blame] | 43 | - make -C ../vtest FLAGS="-O2 -s -Wall" CC=clang |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 44 | |
Ilya Shipitsin | 8a9d55b | 2019-04-17 12:41:13 +0500 | [diff] [blame] | 45 | script: |
Tim Duesterhus | 9dee215 | 2021-04-09 20:21:35 +0200 | [diff] [blame] | 46 | - make -j$(nproc) ERR=1 TARGET=linux-glibc CC=$CC DEBUG=-DDEBUG_STRICT=1 $FLAGS |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 47 | - ./haproxy -vv |
Tim Duesterhus | 9dee215 | 2021-04-09 20:21:35 +0200 | [diff] [blame] | 48 | - ldd haproxy |
Willy Tarreau | d78cf0f | 2020-01-24 17:37:35 +0100 | [diff] [blame] | 49 | - make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 50 | |
51 | after_failure: | ||||
52 | - | | ||||
Ilya Shipitsin | b9ae764 | 2019-05-10 15:38:52 +0500 | [diff] [blame] | 53 | for folder in ${TMPDIR}/*regtest*/vtc.*; do |
Tim Duesterhus | 88c63a6 | 2019-04-24 19:11:09 +0500 | [diff] [blame] | 54 | cat $folder/INFO |
55 | cat $folder/LOG | ||||
56 | done |