[geary/mjog/codespell-qa] build: Add codespell as a test




commit a2976a8ff40c18a26d81421f96e0da4e071ba984
Author: Michael Gratton <mike vee net>
Date:   Thu Aug 20 14:28:35 2020 +1000

    build: Add codespell as a test

 meson.build | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
---
diff --git a/meson.build b/meson.build
index d0ac9540f..89d57c8d1 100644
--- a/meson.build
+++ b/meson.build
@@ -140,6 +140,7 @@ endif
 # Optional dependencies
 appstream_util = find_program('appstream-util', required: false)
 desktop_file_validate = find_program('desktop-file-validate', required: false)
+codespell = find_program('codespell', required: false)
 libmessagingmenu_dep = dependency('messaging-menu', version: '>= 12.10', required: false)
 
 #
@@ -219,3 +220,31 @@ subdir('sql')
 subdir('ui')
 subdir('src')
 subdir('test')
+
+# General QA tests
+
+if codespell.found()
+  test(
+    'codespell',
+    codespell,
+    protocol: 'exitcode',
+    args: [
+      '-f',
+      '-q', '4',
+      '-s',
+      '-S', 'build,_build,\*.xz,\*.png,src/sqlite3-unicodesn',
+      'CONTRIBUTING.md',
+      'NEWS',
+      'INSTALL',
+      'THANKS',
+      'desktop',
+      'help/C',
+      'icons',
+      'sql',
+      'src',
+      'subprojects/vala-unit',
+      'test',
+      'ui'
+    ]
+  )
+endif


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