gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 03/07: ci: add codespell job


From: gnunet
Subject: [taler-exchange] 03/07: ci: add codespell job
Date: Sat, 09 Sep 2023 05:03:25 +0200

This is an automated email from the git hooks/post-receive script.

devan-carpenter pushed a commit to branch master
in repository exchange.

commit 45e3209fa61873db192f02a223dc70464331568e
Author: Devan Carpenter <devan@taler.net>
AuthorDate: Wed Sep 6 21:28:27 2023 -0400

    ci: add codespell job
---
 ci/jobs/0-codespell/config.ini                     |  5 +++
 ci/jobs/0-codespell/dictionary.txt                 | 44 ++++++++++++++++++++++
 ci/jobs/0-codespell/job.sh                         |  6 +++
 ci/jobs/{0-build => 1-build}/build.sh              |  0
 ci/jobs/{0-build => 1-build}/job.sh                |  0
 ci/jobs/{1-test => 2-test}/job.sh                  |  0
 ci/jobs/{1-test => 2-test}/test.sh                 |  0
 ci/jobs/{2-docs => 3-docs}/docs.sh                 |  0
 ci/jobs/{2-docs => 3-docs}/job.sh                  |  0
 .../install-fix.patch                              |  0
 ci/jobs/{3-deb-package => 4-deb-package}/job.sh    |  0
 11 files changed, 55 insertions(+)

diff --git a/ci/jobs/0-codespell/config.ini b/ci/jobs/0-codespell/config.ini
new file mode 100644
index 00000000..1c52b6a1
--- /dev/null
+++ b/ci/jobs/0-codespell/config.ini
@@ -0,0 +1,5 @@
+[build]
+HALT_ON_FAILURE = False
+WARN_ON_FAILURE = True
+CONTAINER_BUILD = False
+CONTAINER_NAME = nixery.dev/shell/codespell
diff --git a/ci/jobs/0-codespell/dictionary.txt 
b/ci/jobs/0-codespell/dictionary.txt
new file mode 100644
index 00000000..b4d64334
--- /dev/null
+++ b/ci/jobs/0-codespell/dictionary.txt
@@ -0,0 +1,44 @@
+# List of "words" that codespell should ignore in our sources.
+#
+# Note: The word sensitivity depends on how the to-be-ignored word is
+#  spelled in codespell_lib/data/dictionary.txt.  F.e. if there is a word
+# 'foo' and you add 'Foo' _here_, codespell will continue to complain
+#  about 'Foo'.
+#
+BRE
+ND
+Nd
+TE
+TEH
+UPDATEing
+WAN
+aci
+acn
+ba
+bre
+cant
+complet
+doas
+ect
+ehr
+fo
+hel
+ifset
+ist
+keypair
+nd
+onl
+openin
+ot
+ser
+sie
+som
+sover
+te
+te
+teh
+tha
+ths
+updateing
+wan
+wih
diff --git a/ci/jobs/0-codespell/job.sh b/ci/jobs/0-codespell/job.sh
new file mode 100755
index 00000000..58bd07b5
--- /dev/null
+++ b/ci/jobs/0-codespell/job.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -exuo pipefail
+
+job_dir=$(dirname "${BASH_SOURCE[0]}")
+
+codespell -I "${job_dir}"/dictionary.txt -S 
"*.bib,*.bst,*.cls,*.json,*.png,*.svg,*.wav,*.gz,*/templating/test?/**,**/auditor/*.sql,**/templating/mustach**,*.fees,*key,*.tag,*.info,*.latexmkrc,*.ecc,*.jpg,*.zkey,*.sqlite,*/contrib/hellos/**,*/vpn/tests/**,*.priv,*.file,*.tgz,*.woff,*.gif,*.odt,*.fee,*.deflate,*.dat,*.jpeg,*.eps,*.odg,*/m4/ax_lib_postgresql.m4,*/m4/libgcrypt.m4,*.rpath,config.status,ABOUT-NLS,*/doc/texinfo.tex,*.PNG,*.??.json,*.docx,*.ods,*.doc,*.docx,*.xcf,*.xlsx,*.ecc,*
 [...]
diff --git a/ci/jobs/0-build/build.sh b/ci/jobs/1-build/build.sh
similarity index 100%
rename from ci/jobs/0-build/build.sh
rename to ci/jobs/1-build/build.sh
diff --git a/ci/jobs/0-build/job.sh b/ci/jobs/1-build/job.sh
similarity index 100%
rename from ci/jobs/0-build/job.sh
rename to ci/jobs/1-build/job.sh
diff --git a/ci/jobs/1-test/job.sh b/ci/jobs/2-test/job.sh
similarity index 100%
rename from ci/jobs/1-test/job.sh
rename to ci/jobs/2-test/job.sh
diff --git a/ci/jobs/1-test/test.sh b/ci/jobs/2-test/test.sh
similarity index 100%
rename from ci/jobs/1-test/test.sh
rename to ci/jobs/2-test/test.sh
diff --git a/ci/jobs/2-docs/docs.sh b/ci/jobs/3-docs/docs.sh
similarity index 100%
rename from ci/jobs/2-docs/docs.sh
rename to ci/jobs/3-docs/docs.sh
diff --git a/ci/jobs/2-docs/job.sh b/ci/jobs/3-docs/job.sh
similarity index 100%
rename from ci/jobs/2-docs/job.sh
rename to ci/jobs/3-docs/job.sh
diff --git a/ci/jobs/3-deb-package/install-fix.patch 
b/ci/jobs/4-deb-package/install-fix.patch
similarity index 100%
rename from ci/jobs/3-deb-package/install-fix.patch
rename to ci/jobs/4-deb-package/install-fix.patch
diff --git a/ci/jobs/3-deb-package/job.sh b/ci/jobs/4-deb-package/job.sh
similarity index 100%
rename from ci/jobs/3-deb-package/job.sh
rename to ci/jobs/4-deb-package/job.sh

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]