.gitlab-ci.yml: Convert the codestyle job to the build.sh usage

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>
This commit is contained in:
Erik Skultety 2023-08-24 16:05:41 +02:00
parent 6283e99edb
commit 7f2adaa3d8
1 changed files with 2 additions and 4 deletions

View 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: