[libvirt PATCH v2 09/35] ci: build.sh: Add a wrapper function over the 'codestyle' job

Erik Skultety posted 35 patches 1 year, 3 months ago
[libvirt PATCH v2 09/35] ci: build.sh: Add a wrapper function over the 'codestyle' job
Posted by Erik Skultety 1 year, 3 months ago
This helper is a shell function transcript of its original GitLab CI
counterpart.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Erik Skultety <eskultet@redhat.com>:
---
 ci/build.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ci/build.sh b/ci/build.sh
index 29b6a3306d..e6c3225691 100644
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -57,3 +57,11 @@ run_test() {
     test -d $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
+}
-- 
2.41.0
Re: [libvirt PATCH v2 09/35] ci: build.sh: Add a wrapper function over the 'codestyle' job
Posted by Daniel P. Berrangé 1 year, 3 months ago
On Mon, Sep 11, 2023 at 03:43:10PM +0200, Erik Skultety wrote:
> This helper is a shell function transcript of its original GitLab CI
> counterpart.
> 
> Signed-off-by: Erik Skultety <eskultet@redhat.com>
> Erik Skultety <eskultet@redhat.com>:
> ---
>  ci/build.sh | 8 ++++++++
>  1 file changed, 8 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|