]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: build.sh: Add variables from .gitlab-ci.yml
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 13:42:45 +0000 (15:42 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 08:36:04 +0000 (10:36 +0200)
These are common variables we wish to use in containerized environments
both in GitLab and locally. Having these defined in a single place
rather than twice is highly preferable.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/build.sh

index d5ed8ad104763aa100afda780d274fb6afe105c6..5a9298c4b42196a45442ca09bf4b8312fe54090a 100644 (file)
@@ -2,7 +2,17 @@
 
 cd "$CI_CONT_SRCDIR"
 
-export VIR_TEST_DEBUG=1
+export CCACHE_BASEDIR="$(pwd)"
+export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
+export CCACHE_MAXSIZE="500M"
+export PATH="$CCACHE_WRAPPERSDIR:$PATH"
+
+# Enable these conditionally since their best use case is during
+# non-interactive workloads without having a Shell
+if ! [ -t 1 ]; then
+    export VIR_TEST_VERBOSE="1"
+    export VIR_TEST_DEBUG="1"
+fi
 
 # $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