2021-02-10 06:27:49 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-08-15 12:28:17 +00:00
|
|
|
# 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.
|
|
|
|
|
2020-11-09 11:20:52 +00:00
|
|
|
cd "$CI_CONT_SRCDIR"
|
2019-08-15 12:28:17 +00:00
|
|
|
|
|
|
|
export VIR_TEST_DEBUG=1
|
|
|
|
|
2020-11-09 11:20:52 +00:00
|
|
|
# $MESON_OPTS is an env that can optionally be set in the container,
|
2019-08-15 12:28:17 +00:00
|
|
|
# populated at build time from the Dockerfile. A typical use case would
|
2020-11-09 11:20:52 +00:00
|
|
|
# be to pass options to trigger cross-compilation
|
2019-08-15 12:28:17 +00:00
|
|
|
|
2020-11-09 11:20:52 +00:00
|
|
|
meson build --werror $MESON_OPTS $CI_MESON_ARGS || \
|
|
|
|
(cat build/meson-logs/meson-log.txt && exit 1)
|
2019-08-15 12:28:17 +00:00
|
|
|
|
2020-11-09 11:20:52 +00:00
|
|
|
ninja -C build $CI_NINJA_ARGS
|