ci: build.sh: Add GIT_ROOT env helper variable

We'll use this one in many of the job functions future patches will
introduce, it's a neat shortcut to avoid using relative paths.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Erik Skultety 2023-08-25 16:12:32 +02:00
parent 470596b850
commit e61241d7f4
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ if ! [ -t 1 ]; then
export VIR_TEST_DEBUG="1"
fi
GIT_ROOT="$(git rev-parse --show-toplevel)"
# $MESON_OPTS is an env that can optionally be set in the container,
# populated at build time from the Dockerfile. A typical use case would
# be to pass options to trigger cross-compilation