CI: intial CI setup

add ci directory with 3 basic jobs.
This commit is contained in:
Devan Carpenter 2023-06-07 11:53:49 -04:00
parent 8b90bd84ab
commit 0a12dac40b
No known key found for this signature in database
GPG Key ID: 83820B466275A65C
8 changed files with 107 additions and 0 deletions

19
ci/Containerfile Normal file
View File

@ -0,0 +1,19 @@
FROM docker.io/library/node:18-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -yq && \
apt-get install -yqq \
git \
python3 \
python3-distutils \
make \
zip \
jq
RUN npm install -g pnpm
# Set our workdir. All subsequent commands will be relative to this path.
WORKDIR /workdir
CMD ["bash", "/workdir/ci/ci.sh"]

View File

@ -0,0 +1,5 @@
[build]
HALT_ON_FAILURE = False
WARN_ON_FAILURE = True
CONTAINER_BUILD = False
CONTAINER_NAME = nixery.dev/shell/codespell

View File

@ -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

6
ci/jobs/0-codespell/job.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -exuo pipefail
job_dir=$(dirname "${BASH_SOURCE[0]}")
codespell -I "${job_dir}"/dictionary.txt

6
ci/jobs/1-build/build.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -exuo pipefail
./bootstrap
./configure --prefix=$HOME/local/
make

6
ci/jobs/1-build/job.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -exuo pipefail
job_dir=$(dirname "${BASH_SOURCE[0]}")
"${job_dir}"/build.sh

15
ci/jobs/2-docs/docs.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -exuo pipefail
./bootstrap
./configure
make
pnpm install typedoc
./node_modules/typedoc/bin/typedoc \
--out dist/typedoc \
--tsconfig tsconfig.build.json \
packages/taler-util/src/index.ts \
packages/taler-wallet-cli/src/index.ts \
packages/taler-wallet-android/src/index.ts \
packages/taler-wallet-core/src/index.ts

6
ci/jobs/2-docs/job.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -exuo pipefail
job_dir=$(dirname "${BASH_SOURCE[0]}")
"${job_dir}"/docs.sh