Skip to content

Commit 65b0164

Browse files
committed
Build Autotools CI tests out of source tree (VPATH)
1 parent ad09803 commit 65b0164

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.gitlab-ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
BASE_CONFIG: "--with-ftp --with-legacy --with-xptr-locs"
2121
script:
2222
- |
23+
rm -rf build
24+
mkdir build
25+
cd build
2326
ln -s /tests/xmlconf
24-
sh autogen.sh $BASE_CONFIG $CONFIG
27+
sh ../autogen.sh $BASE_CONFIG $CONFIG
2528
make -j$(nproc) V=1 CFLAGS="$CFLAGS -Werror"
2629
make CFLAGS="$CFLAGS -Werror" check
2730

autogen.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#!/bin/sh
22
# Run this to generate all the initial makefiles, etc.
33

4-
srcdir=`dirname $0`
5-
test -z "$srcdir" && srcdir=.
6-
74
THEDIR=`pwd`
8-
cd $srcdir
5+
cd `dirname $0`
6+
srcdir=`pwd`
7+
98
DIE=0
109

1110
(autoconf --version) < /dev/null > /dev/null 2>&1 || {

0 commit comments

Comments
 (0)