mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
2621d48f00
This deletes all trace of gnulib from libvirt. We still have the keycodemapdb submodule to deal with. The simple solution taken was to update it when running autogen.sh. Previously gnulib could auto-trigger refresh when running 'make' too. We could figure out a solution for this, but with the pending meson rewrite it isn't worth worrying about, given how infrequently keycodemapdb changes. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# This script is used to build libvirt inside the container.
|
|
#
|
|
# You can customize it to your liking, or alternatively use a
|
|
# completely different script by passing
|
|
#
|
|
# CI_BUILD_SCRIPT=/path/to/your/build/script
|
|
#
|
|
# to make.
|
|
|
|
mkdir -p "$CI_CONT_BUILDDIR" || exit 1
|
|
cd "$CI_CONT_BUILDDIR"
|
|
|
|
export VIR_TEST_DEBUG=1
|
|
NOCONFIGURE=1 "$CI_CONT_SRCDIR/autogen.sh" || exit 1
|
|
|
|
# $CONFIGURE_OPTS is a env that can optionally be set in the container,
|
|
# populated at build time from the Dockerfile. A typical use case would
|
|
# be to pass --host/--target args to trigger cross-compilation
|
|
#
|
|
# This can be augmented by make local args in $CI_CONFIGURE_ARGS
|
|
"$CI_CONFIGURE" $CONFIGURE_OPTS $CI_CONFIGURE_ARGS
|
|
if test $? != 0; then
|
|
test -f config.log && cat config.log
|
|
exit 1
|
|
fi
|
|
find -name test-suite.log -delete
|
|
|
|
make -j"$CI_SMP" $CI_MAKE_ARGS
|
|
|
|
if test $? != 0; then \
|
|
LOGS=$(find -name test-suite.log)
|
|
if test "$LOGS"; then
|
|
echo "=== LOG FILE(S) START ==="
|
|
cat $LOGS
|
|
echo "=== LOG FILE(S) END ==="
|
|
fi
|
|
exit 1
|
|
fi
|