]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: build.sh: Add a wrapper function over the 'codestyle' job
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 13:49:19 +0000 (15:49 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 09:36:03 +0000 (11:36 +0200)
This helper is a shell function transcript of its original GitLab CI
counterpart.

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

index 9af6d807f9ae32ab534db7669d30073a2145f005..16492f768d6692c357763ea3acc1fbd666c5cca8 100644 (file)
@@ -57,3 +57,11 @@ run_test() {
     test -f $GIT_ROOT/build/build.ninja || run_meson_setup
     run_cmd meson test -C build $TEST_ARGS
 }
+
+run_codestyle() {
+    BUILD_ARGS="libvirt-pot-dep"
+    TEST_ARGS="--suite syntax-check --no-rebuild --print-errorlogs"
+
+    run_build
+    run_test
+}