Просмотр исходного кода

gitlab-ci: add codespell lint job

Brad King 4 лет назад
Родитель
Сommit
bca69d4272
3 измененных файлов с 14 добавлено и 1 удалено
  1. 1 1
      .codespellrc
  2. 6 0
      .gitlab-ci.yml
  3. 7 0
      .gitlab/os-linux.yml

+ 1 - 1
.codespellrc

@@ -5,5 +5,5 @@ count =
 # Disable warnings about binary files
 quiet-level = 2
 builtin = clear,rare,en-GB_to_en-US
-skip = */.git,*/Copyright.txt,*/doxygen.config,*/Modules/Internal/CPack/NSIS.template.in,*/Source/CursesDialog/form/*,*/Source/kwsys/*,*/Tests/RunCMake/CPack/tests/DMG_SLA/German.*,*/Utilities/cm*
+skip = */.git,*/build,*/Copyright.txt,*/doxygen.config,*/Modules/Internal/CPack/NSIS.template.in,*/Source/CursesDialog/form/*,*/Source/kwsys/*,*/Tests/RunCMake/CPack/tests/DMG_SLA/German.*,*/Utilities/cm*
 ignore-words-list = aci,ake,ans,ba,cconfiguration,conly,dependees,dne,dum,earch,ect,filetest,fo,helpfull,hiden,isnt,keypair,nd,ned,nin,nknown,ot,pard,seh,ser,te,upto,varn,vas,wee

+ 6 - 0
.gitlab-ci.yml

@@ -99,6 +99,12 @@ upload:help:stage:
 
 # Lint builds
 
+lint:codespell:
+    extends:
+        - .cmake_codespell_linux
+        - .linux_builder_tags
+        - .run_automatically
+
 lint:debian10-iwyu:
     extends:
         - .debian10_iwyu

+ 7 - 0
.gitlab/os-linux.yml

@@ -258,6 +258,13 @@
 
     interruptible: true
 
+.cmake_codespell_linux:
+    stage: build
+    extends: .fedora34
+    script:
+        - codespell
+    interruptible: true
+
 .cmake_build_linux:
     stage: build