[libvirt PATCH v2 21/35] .gitlab-ci.yml: Convert the codestyle job to the build.sh usage

Erik Skultety eskultet at redhat.com
Mon Sep 11 13:43:22 UTC 2023


Individual shell command executions are replaced by respective
functions in the ci/build.sh base script. This will make sure we use
the same recipes in GitLab jobs as well as in local executions.

Signed-off-by: Erik Skultety <eskultet at redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Erik Skultety <eskultet at redhat.com>:
---
 .gitlab-ci.yml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d41cc63ec2..35f1a1e135 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -114,10 +114,8 @@ website_local_env:
 .codestyle_job:
   stage: sanity_checks
   script:
-    - *script_variables
-    - meson setup build --werror || (cat build/meson-logs/meson-log.txt && exit 1)
-    - meson compile -C build libvirt-pot-dep
-    - meson test -C build --suite syntax-check --no-rebuild --print-errorlogs
+    - source ci/jobs.sh
+    - run_codestyle
 
 codestyle_prebuilt_env:
   extends:
-- 
2.41.0



More information about the libvir-list mailing list