blob: 86b40478295cd578a1dc3ed661bf6e3cc516ca60 [file] [log] [blame]
Ilya Shipitsinb396f4d2019-04-30 15:33:36 +05001FreeBSD_task:
2 freebsd_instance:
Ilya Shipitsin125ad1f2019-12-26 13:37:36 +05003 matrix:
Ilya Shipitsineccb2b42020-02-11 13:16:02 +05004 image_family: freebsd-13-0-snap
5 image_family: freebsd-12-1-snap
Ilya Shipitsin125ad1f2019-12-26 13:37:36 +05006 image_family: freebsd-11-3-snap
Ilya Shipitsin632cae22019-10-27 20:16:29 +05007 only_if: $CIRRUS_BRANCH =~ 'master|next'
Ilya Shipitsin77a8b632020-02-26 19:29:36 +05008 env:
9 IGNORE_OSVERSION: yes # supress package installation error on FreeBSD-13
Ilya Shipitsin125ad1f2019-12-26 13:37:36 +050010 install_script:
Ilya Shipitsin1726dab2020-02-11 13:19:22 +050011 - pkg update -f && pkg upgrade -y && pkg install -y openssl git gmake lua53 socat
Ilya Shipitsinb396f4d2019-04-30 15:33:36 +050012 script:
Ilya Shipitsinb396f4d2019-04-30 15:33:36 +050013 - git clone https://github.com/VTest/VTest.git ../vtest
14 - make -C ../vtest
Ilya Shipitsin4550e872020-02-11 13:20:32 +050015 - gmake CC=clang V=1 ERR=1 TARGET=freebsd USE_ZLIB=1 USE_PCRE=1 USE_OPENSSL=1 USE_LUA=1 LUA_INC=/usr/local/include/lua53 LUA_LIB=/usr/local/lib LUA_LIB_NAME=lua-5.3
Ilya Shipitsinb396f4d2019-04-30 15:33:36 +050016 - ./haproxy -vv
17 - ldd haproxy
18 - env VTEST_PROGRAM=../vtest/vtest gmake reg-tests || (for folder in /tmp/*regtest*/vtc.*; do cat $folder/INFO $folder/LOG; done && exit 1)
19
Ilya Shipitsinc886e592019-09-02 00:03:10 +050020centos_6_task:
21 container:
22 image: centos:centos6
Ilya Shipitsin632cae22019-10-27 20:16:29 +050023 only_if: $CIRRUS_BRANCH =~ 'master|next'
Ilya Shipitsinc886e592019-09-02 00:03:10 +050024 script:
Ilya Shipitsin125ad1f2019-12-26 13:37:36 +050025 - yum install -q -y gcc git openssl-devel pcre-devel epel-release socat
Ilya Shipitsinc886e592019-09-02 00:03:10 +050026 - yum install -q -y python34
27 - git clone https://github.com/VTest/VTest.git ../vtest
28 # Special flags due to: https://github.com/vtest/VTest/issues/12
29 - make -C ../vtest FLAGS="-O2 -s -Wall -lrt"
30 - make CC=cc V=1 TARGET=linux-glibc-legacy USE_ZLIB=1 USE_PCRE=1 USE_OPENSSL=1
31 - ./haproxy -vv
32 - ldd haproxy
Ilya Shipitsinbd99f6d2019-09-06 23:18:14 +050033 # remove alpn reg-test (CentOS 6 does not support alpn)
34 - rm reg-tests/connection/proxy_protocol_random_fail.vtc
Ilya Shipitsinc886e592019-09-02 00:03:10 +050035 - env VTEST_PROGRAM=../vtest/vtest make reg-tests || (for folder in /tmp/*regtest*/vtc.*; do cat $folder/INFO $folder/LOG; done && exit 1)