2019-04-17 07:41:13 +00:00
|
|
|
sudo: required
|
|
|
|
dist: xenial
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
2019-04-24 14:11:09 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: [ liblua5.3-dev ]
|
|
|
|
|
2019-04-17 07:41:13 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-04-24 14:11:09 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 FLAGS=
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: TARGET=linux2628 FLAGS="USE_ZLIB=1 USE_PCRE=1 USE_LUA=1 USE_OPENSSL=1"
|
2019-04-17 07:41:13 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2019-04-24 14:11:09 +00:00
|
|
|
env: TARGET=linux2628 FLAGS=
|
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
|
|
|
env: TARGET=generic FLAGS=
|
2019-04-17 07:41:13 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- git clone https://github.com/VTest/VTest.git ../vtest
|
2019-04-24 14:11:09 +00:00
|
|
|
# Special flags due to: https://github.com/vtest/VTest/issues/12
|
|
|
|
- make -C ../vtest FLAGS="-O2 -s -Wall"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
# This is a fix for the super long TMPDIR on Mac making
|
|
|
|
# the unix socket path names exceed the maximum allowed
|
|
|
|
# length.
|
|
|
|
- sed -i'.original' '/TESTDIR=.*haregtests/s/haregtests-.*XXXXXX/regtest.XXX/' scripts/run-regtests.sh
|
2019-04-17 07:41:13 +00:00
|
|
|
|
|
|
|
script:
|
2019-04-24 14:11:09 +00:00
|
|
|
- make CC=$CC V=1 TARGET=$TARGET $FLAGS
|
|
|
|
- ./haproxy -vv
|
|
|
|
- env VTEST_PROGRAM=../vtest/vtest make reg-tests
|
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- |
|
|
|
|
for folder in ${TMPDIR:-/tmp}/*regtest*/vtc.*; do
|
|
|
|
cat $folder/INFO
|
|
|
|
cat $folder/LOG
|
|
|
|
done
|