blob: 970ab3ae44f924f47a567c04eebfb036aa747c28 [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 Shipitsinf726e032020-03-04 01:18:02 +05004 image_family: freebsd-12-1
Ilya Shipitsin632cae22019-10-27 20:16:29 +05005 only_if: $CIRRUS_BRANCH =~ 'master|next'
Ilya Shipitsin125ad1f2019-12-26 13:37:36 +05006 install_script:
Ilya Shipitsin2c64a172020-04-08 00:29:26 +05007 - pkg update -f && pkg upgrade -y && pkg install -y openssl git gmake lua53 socat
Ilya Shipitsinb396f4d2019-04-30 15:33:36 +05008 script:
Ilya Shipitsinb396f4d2019-04-30 15:33:36 +05009 - git clone https://github.com/VTest/VTest.git ../vtest
10 - make -C ../vtest
Ilya Shipitsin4550e872020-02-11 13:20:32 +050011 - 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 +050012 - ./haproxy -vv
13 - ldd haproxy
Ilya Shipitsin95d8af72020-06-27 11:06:10 +050014 - env VTEST_PROGRAM=../vtest/vtest gmake reg-tests REGTESTS_TYPES=default,bug,devel || (for folder in /tmp/*regtest*/vtc.*; do cat $folder/INFO $folder/LOG; done && exit 1)
Ilya Shipitsinb396f4d2019-04-30 15:33:36 +050015
Ilya Shipitsinc886e592019-09-02 00:03:10 +050016centos_6_task:
17 container:
18 image: centos:centos6
Ilya Shipitsin632cae22019-10-27 20:16:29 +050019 only_if: $CIRRUS_BRANCH =~ 'master|next'
Ilya Shipitsinc886e592019-09-02 00:03:10 +050020 script:
Ilya Shipitsin125ad1f2019-12-26 13:37:36 +050021 - yum install -q -y gcc git openssl-devel pcre-devel epel-release socat
Ilya Shipitsinc886e592019-09-02 00:03:10 +050022 - yum install -q -y python34
23 - git clone https://github.com/VTest/VTest.git ../vtest
24 # Special flags due to: https://github.com/vtest/VTest/issues/12
25 - make -C ../vtest FLAGS="-O2 -s -Wall -lrt"
26 - make CC=cc V=1 TARGET=linux-glibc-legacy USE_ZLIB=1 USE_PCRE=1 USE_OPENSSL=1
27 - ./haproxy -vv
28 - ldd haproxy
Ilya Shipitsine50b7dc2020-04-27 23:35:13 +050029 # remove some reg-tests (CentOS 6 does not support alpn)
Ilya Shipitsin143f4ce2020-05-28 01:50:57 +050030 - rm reg-tests/{connection/proxy_protocol_random_fail,checks/tcp-check-ssl,connection/proxy_protocol_send_unique_id_alpn}.vtc
Ilya Shipitsin95d8af72020-06-27 11:06:10 +050031 - env VTEST_PROGRAM=../vtest/vtest make reg-tests REGTESTS_TYPES=default,bug,devel || (for folder in /tmp/*regtest*/vtc.*; do cat $folder/INFO $folder/LOG; done && exit 1)