]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
.gitlab-ci.yml: Convert the codestyle job to the build.sh usage
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 14:05:41 +0000 (16:05 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 09:36:03 +0000 (11:36 +0200)
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@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
.gitlab-ci.yml

index d41cc63ec2fe8c41aff78fd75502415f8e1fa138..35f1a1e135044111ed560fef86d40cd38f95eeb9 100644 (file)
@@ -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: