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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 .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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux