2021-02-10 06:27:49 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
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
|
2023-02-01 14:22:59 +00:00
|
|
|
#
|
|
|
|
# $MESON_ARGS correspond to meson's setup args, i.e. configure args. It's
|
|
|
|
# populated either from a GitLab's job configuration or from command line as
|
|
|
|
# `$ helper build --meson-configure-args=-Dopt1 -Dopt2` when run in a local
|
|
|
|
# containerized environment
|
2019-08-15 12:28:17 +00:00
|
|
|
|
2023-02-01 14:22:59 +00:00
|
|
|
MESON_ARGS="$MESON_ARGS $MESON_OPTS"
|
|
|
|
|
|
|
|
meson setup build --werror -Dsystem=true $MESON_ARGS || \
|
2020-11-09 11:20:52 +00:00
|
|
|
(cat build/meson-logs/meson-log.txt && exit 1)
|
2019-08-15 12:28:17 +00:00
|
|
|
|
2023-01-31 17:06:53 +00:00
|
|
|
ninja -C build $NINJA_ARGS
|