aboutsummaryrefslogtreecommitdiff
path: root/ci/jobs/0-codespell
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2023-06-07 11:53:49 -0400
committerDevan Carpenter <devan@taler.net>2023-07-17 17:07:45 -0400
commit0a12dac40b557f77220ddebb51d8e851a2c3c528 (patch)
treeb3dc4ffdabad3c8a5d035e39ec9aff674e60ab07 /ci/jobs/0-codespell
parent8b90bd84ab75f2faabaf48ec7295f8068b8969ed (diff)
downloadwallet-core-0a12dac40b557f77220ddebb51d8e851a2c3c528.tar.xz
CI: intial CI setup
add ci directory with 3 basic jobs.
Diffstat (limited to 'ci/jobs/0-codespell')
-rw-r--r--ci/jobs/0-codespell/config.ini5
-rw-r--r--ci/jobs/0-codespell/dictionary.txt44
-rwxr-xr-xci/jobs/0-codespell/job.sh6
3 files changed, 55 insertions, 0 deletions
diff --git a/ci/jobs/0-codespell/config.ini b/ci/jobs/0-codespell/config.ini
new file mode 100644
index 000000000..1c52b6a1a
--- /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 000000000..b4d643349
--- /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 000000000..eaa1ded62
--- /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