1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

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" BASE_CONFIG: "--with-ftp --with-legacy --with-xptr-locs"
script: script:
- | - |
rm -rf build
mkdir build
cd build
ln -s /tests/xmlconf 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 -j$(nproc) V=1 CFLAGS="$CFLAGS -Werror"
make CFLAGS="$CFLAGS -Werror" check make CFLAGS="$CFLAGS -Werror" check

View File

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