summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 7f5110e323aac4b5cd4e20b51d6ecbe79bc1daa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
dist: focal

language: c

branches:
  only:
    - master

env:
  global:
    - FLAGS="USE_LUA=1 USE_OPENSSL=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_SYSTEMD=1 USE_ZLIB=1"
    - TMPDIR=/tmp

addons:
  apt:
    update: true
    packages: [ liblua5.3-dev, libsystemd-dev, libpcre2-dev, socat, libpcre3-dev ]

matrix:
  include:
  - os: linux
    arch: ppc64le
    compiler: gcc
    if: type == cron
#  - os: linux
#    arch: arm64
#    compiler: gcc
#    if: type == cron
  - os: linux
    arch: arm64-graviton2
    group: edge
    virt: vm
    compiler: gcc
    if: type == cron
  - os: linux
    arch: s390x
    compiler: gcc
    if: type == cron

install:
  - scripts/build-vtest.sh

script:
  - make -j$(nproc) ERR=1 TARGET=linux-glibc CC=$CC DEBUG=-DDEBUG_STRICT=1 $FLAGS
  - ./haproxy -vv
  - ldd haproxy
  - make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel

after_failure:
  - |
    for folder in ${TMPDIR}/*regtest*/vtc.*; do
      cat $folder/INFO
      cat $folder/LOG
    done