Build Autotools CI tests out of source tree (VPATH)

This commit is contained in:
Nick Wellnhofer 2022-04-21 06:27:33 +02:00
parent ad098030ad
commit 65b01647bf
2 changed files with 7 additions and 5 deletions

View File

@ -20,8 +20,11 @@
BASE_CONFIG: "--with-ftp --with-legacy --with-xptr-locs"
script:
- |
rm -rf build
mkdir build
cd build
ln -s /tests/xmlconf
sh autogen.sh $BASE_CONFIG $CONFIG
sh ../autogen.sh $BASE_CONFIG $CONFIG
make -j$(nproc) V=1 CFLAGS="$CFLAGS -Werror"
make CFLAGS="$CFLAGS -Werror" check

View File

@ -1,11 +1,10 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
cd $srcdir
cd `dirname $0`
srcdir=`pwd`
DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 || {