diff options
author | Devan Carpenter <devan@taler.net> | 2024-01-15 11:51:15 -0500 |
---|---|---|
committer | Devan Carpenter <devan@taler.net> | 2024-01-15 12:53:14 -0500 |
commit | 579dec5ba4b1e18952cd507078aad349163e1026 (patch) | |
tree | 17ee2f1b1e8693dbc245b41d19073c6039d265c3 /contrib/ci/jobs | |
parent | 8da08fe4205c1e03eec3d4925c598be0b6769ba5 (diff) | |
download | wallet-core-579dec5ba4b1e18952cd507078aad349163e1026.tar.xz |
ci: move to contrib dir
Diffstat (limited to 'contrib/ci/jobs')
-rw-r--r-- | contrib/ci/jobs/0-codespell/config.ini | 5 | ||||
-rw-r--r-- | contrib/ci/jobs/0-codespell/dictionary.txt | 20 | ||||
-rwxr-xr-x | contrib/ci/jobs/0-codespell/job.sh | 6 | ||||
-rwxr-xr-x | contrib/ci/jobs/1-build/build.sh | 6 | ||||
-rwxr-xr-x | contrib/ci/jobs/1-build/job.sh | 6 | ||||
-rwxr-xr-x | contrib/ci/jobs/2-docs/docs.sh | 8 | ||||
-rwxr-xr-x | contrib/ci/jobs/2-docs/job.sh | 6 |
7 files changed, 57 insertions, 0 deletions
diff --git a/contrib/ci/jobs/0-codespell/config.ini b/contrib/ci/jobs/0-codespell/config.ini new file mode 100644 index 000000000..1c52b6a1a --- /dev/null +++ b/contrib/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/contrib/ci/jobs/0-codespell/dictionary.txt b/contrib/ci/jobs/0-codespell/dictionary.txt new file mode 100644 index 000000000..aeace0e9e --- /dev/null +++ b/contrib/ci/jobs/0-codespell/dictionary.txt @@ -0,0 +1,20 @@ +# 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'. +# +aci +cant +ect +fo +som +te +ths +updateing +vie +zar +nam +pares +kwanza diff --git a/contrib/ci/jobs/0-codespell/job.sh b/contrib/ci/jobs/0-codespell/job.sh new file mode 100755 index 000000000..9271343e6 --- /dev/null +++ b/contrib/ci/jobs/0-codespell/job.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -exuo pipefail + +job_dir=$(dirname "${BASH_SOURCE[0]}") + +codespell -q 0 -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,*.ttf,*.woff2,*.eot,*.ttf,*.eot,*.mp4,*.pptx,*.epgz,*.min.js,**/*.map,**/fonts/**,*.pack.js,*.po,*.bbl,*/afl-tests/*,*/.git/**,*.pdf,*.epub,**/signing-key.asc,**/pnpm-lock.yaml,**/*.svg,**/*.cls,**/rfc.bib,**/*.bst,*/cbdc-es.tex,*/cbdc-it.tex,**/ExchangeSelection/example.ts,*/testcurl/test_tricky.c,*/i18n/strings.ts,*/src/anastasis-data.ts,**/doc/flows/main.de.tex,*/vendor/**,*/node_modules/**,*.pnpm-store/**" diff --git a/contrib/ci/jobs/1-build/build.sh b/contrib/ci/jobs/1-build/build.sh new file mode 100755 index 000000000..25a38946d --- /dev/null +++ b/contrib/ci/jobs/1-build/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -exuo pipefail + +./bootstrap +./configure --prefix=$HOME/local/ +make diff --git a/contrib/ci/jobs/1-build/job.sh b/contrib/ci/jobs/1-build/job.sh new file mode 100755 index 000000000..8d79902c5 --- /dev/null +++ b/contrib/ci/jobs/1-build/job.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -exuo pipefail + +job_dir=$(dirname "${BASH_SOURCE[0]}") + +"${job_dir}"/build.sh diff --git a/contrib/ci/jobs/2-docs/docs.sh b/contrib/ci/jobs/2-docs/docs.sh new file mode 100755 index 000000000..ee6abc2ac --- /dev/null +++ b/contrib/ci/jobs/2-docs/docs.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -exuo pipefail + +./bootstrap +./configure +make + +pnpm run typedoc diff --git a/contrib/ci/jobs/2-docs/job.sh b/contrib/ci/jobs/2-docs/job.sh new file mode 100755 index 000000000..a72bca4ba --- /dev/null +++ b/contrib/ci/jobs/2-docs/job.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -exuo pipefail + +job_dir=$(dirname "${BASH_SOURCE[0]}") + +"${job_dir}"/docs.sh |