]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
gitlab: add explicit early job for syntax-check
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 26 Mar 2020 12:07:34 +0000 (12:07 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 27 Mar 2020 12:32:48 +0000 (12:32 +0000)
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>
.gitlab-ci.yml

index ae5f2f9597e2b144b3316dd8c011db5d89b90e8f..d8b316d6189a48f1530a9d4de2e53613e30a7413 100644 (file)
@@ -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