mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
gitlab: add explicit early job for syntax-check
Running the code style syntax-check as part of the build jobs leads to all jobs failing in the same way. Have a prebuild job for validating syntax-check to catch code style problems upfront and thus avoid needing to run all the build jobs. Reviewed-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>a Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
c7f11d0a6c
commit
2c33dfb66f
@ -181,6 +181,16 @@ website:
|
||||
- website
|
||||
|
||||
|
||||
codestyle:
|
||||
stage: prebuild
|
||||
script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- ../autogen.sh || (cat config.log && exit 1)
|
||||
- $MAKE -j $(getconf _NPROCESSORS_ONLN) syntax-check
|
||||
image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest
|
||||
|
||||
|
||||
# This artifact published by this job is downloaded to push to Weblate
|
||||
# for translation usage:
|
||||
# https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=potfile
|
||||
|
Loading…
x
Reference in New Issue
Block a user