[libvirt PATCH v3 3/3] ci: Add spell checking

Tim Wiederhake twiederh at redhat.com
Fri Jan 21 09:41:50 UTC 2022


Allow the spell checking job to fail to not have false-positives
fail the entire build.

Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 .gitlab-ci.yml | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6ba11a0431..8f43889067 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,11 +82,22 @@ codestyle:
   before_script:
     - *script_variables
   script:
-    - meson setup build --werror || (cat build/meson-logs/meson-log.txt && exit 1)
+    - meson setup build --werror -Dspellcheck=disabled || (cat build/meson-logs/meson-log.txt && exit 1)
     - ninja -C build libvirt-pot-dep
     - meson test -C build --suite syntax-check --no-rebuild --print-errorlogs
 
 
+spellcheck:
+  stage: sanity_checks
+  image: $CI_REGISTRY_IMAGE/ci-fedora-35:latest
+  allow_failure: true
+  needs:
+    - x86_64-fedora-35-container
+  before_script:
+    - *script_variables
+  script:
+    - scripts/check-spelling.py
+
 # 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
-- 
2.31.1




More information about the libvir-list mailing list