diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2020-03-26 12:07:34 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2020-03-27 12:32:48 +0000 |
commit | 2c33dfb66fae94c4473a59eb3f3a02c8f3101270 (patch) | |
tree | d7453ff06dd5f15f3a3428fe76159b1ae28425ad | |
parent | c7f11d0a6cdc59996b2963ec52a0950d9db50c6f (diff) | |
download | libvirt-2c33dfb66fae94c4473a59eb3f3a02c8f3101270.tar.gz |
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>
-rw-r--r-- | .gitlab-ci.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae5f2f9597..d8b316d618 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 |