aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2023-11-22 22:41:23 -0500
committerDevan Carpenter <devan@taler.net>2023-11-22 22:41:23 -0500
commitbaa070d19cda046cb0349e85a9a8aabcd9f52661 (patch)
tree8ff858c8b8c9cfb42bc6d79f7da1cba603970577 /ci
parente53e06bc753e444b7365cf97bcbe006a52d850b9 (diff)
downloadexchange-baa070d19cda046cb0349e85a9a8aabcd9f52661.tar.xz
ci: move to contrib dir
Diffstat (limited to 'ci')
-rw-r--r--ci/Containerfile71
-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
-rwxr-xr-xci/jobs/1-build/build.sh9
-rwxr-xr-xci/jobs/1-build/job.sh6
-rwxr-xr-xci/jobs/2-test/job.sh6
-rwxr-xr-xci/jobs/2-test/test.sh37
-rwxr-xr-xci/jobs/3-docs/docs.sh11
-rwxr-xr-xci/jobs/3-docs/job.sh6
-rw-r--r--ci/jobs/4-deb-package/install-fix.patch13
-rwxr-xr-xci/jobs/4-deb-package/job.sh24
12 files changed, 0 insertions, 238 deletions
diff --git a/ci/Containerfile b/ci/Containerfile
deleted file mode 100644
index 8b0792166..000000000
--- a/ci/Containerfile
+++ /dev/null
@@ -1,71 +0,0 @@
-FROM docker.io/library/debian:bookworm
-
-ENV DEBIAN_FRONTEND=noninteractive
-
-RUN apt-get update -yqq && \
- apt-get install -yqq \
- autoconf \
- autopoint \
- curl \
- git \
- libcurl4-gnutls-dev \
- libgcrypt-dev \
- libidn11-dev \
- libjansson-dev \
- libmicrohttpd-dev \
- libpq-dev \
- libqrencode-dev \
- libsodium-dev \
- libtool \
- libunistring-dev \
- make \
- pkg-config \
- python3-pip \
- python3-sphinx \
- python3-sphinx-rtd-theme \
- recutils \
- texinfo \
- zlib1g-dev
-
-# Debian packaging tools
-RUN apt-get install -yqq \
- po-debconf \
- build-essential \
- debhelper-compat \
- devscripts
-
-# Documentation dependencies
-RUN apt-get install -yqq \
- doxygen \
- graphviz
-
-# Test suite dependencies
-RUN apt-get install -yqq \
- jq \
- postgresql \
- sudo \
- wget
-
-# Install Taler (and friends) packages
-RUN curl -sS https://deb.taler.net/apt-nightly/taler-bookworm-ci.sources \
- | tee /etc/apt/sources.list.d/taler-bookworm-ci.sources
-
-RUN echo '\
-Package: * \n\
-Pin: origin "deb.taler.net" \n\
-Pin-Priority: 999' > /etc/apt/preferences.d/taler
-
-RUN cat /etc/apt/preferences.d/taler && \
- apt-get update -y && \
- apt-get install -y \
- libgnunet-dev \
- libgnunet \
- gnunet \
-&& rm -rf /var/lib/apt/lists/*
-
-
-RUN pip3 install --break-system-packages htmlark
-
-WORKDIR /workdir
-
-CMD ["bash", "/workdir/ci/ci.sh"]
diff --git a/ci/jobs/0-codespell/config.ini b/ci/jobs/0-codespell/config.ini
deleted file mode 100644
index 1c52b6a1a..000000000
--- a/ci/jobs/0-codespell/config.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[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
deleted file mode 100644
index b4d643349..000000000
--- a/ci/jobs/0-codespell/dictionary.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-# 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
deleted file mode 100755
index 58bd07b5a..000000000
--- a/ci/jobs/0-codespell/job.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/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,*.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"
diff --git a/ci/jobs/1-build/build.sh b/ci/jobs/1-build/build.sh
deleted file mode 100755
index b11374291..000000000
--- a/ci/jobs/1-build/build.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-set -exuo pipefail
-
-./bootstrap
-./configure CFLAGS="-ggdb -O0" \
- --enable-logging=verbose \
- --disable-doc
-
-make
diff --git a/ci/jobs/1-build/job.sh b/ci/jobs/1-build/job.sh
deleted file mode 100755
index 8d79902c5..000000000
--- a/ci/jobs/1-build/job.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-set -exuo pipefail
-
-job_dir=$(dirname "${BASH_SOURCE[0]}")
-
-"${job_dir}"/build.sh
diff --git a/ci/jobs/2-test/job.sh b/ci/jobs/2-test/job.sh
deleted file mode 100755
index bfb24e335..000000000
--- a/ci/jobs/2-test/job.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-set -exuo pipefail
-
-job_dir=$(dirname "${BASH_SOURCE[0]}")
-
-"${job_dir}"/test.sh
diff --git a/ci/jobs/2-test/test.sh b/ci/jobs/2-test/test.sh
deleted file mode 100755
index 39fca5c16..000000000
--- a/ci/jobs/2-test/test.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-set -evu
-
-./bootstrap
-./configure CFLAGS="-ggdb -O0" \
- --enable-logging=verbose \
- --disable-doc
-make
-make install
-
-sudo -u postgres /usr/lib/postgresql/15/bin/postgres -D /etc/postgresql/15/main -h localhost -p 5432 &
-sleep 10
-sudo -u postgres createuser -p 5432 root
-sudo -u postgres createdb -p 5432 -O root talercheck
-
-check_command()
-{
- # Set LD_LIBRARY_PATH so tests can find the installed libs
- LD_LIBRARY_PATH=/usr/local/lib PGPORT=5432 make check
-}
-
-print_logs()
-{
- for i in src/*/test-suite.log
- do
- for FAILURE in $(grep '^FAIL:' ${i} | cut -d' ' -f2)
- do
- echo "Printing ${FAILURE}.log"
- tail "$(dirname $i)/${FAILURE}.log"
- done
- done
-}
-
-if ! check_command ; then
- print_logs
- exit 1
-fi
diff --git a/ci/jobs/3-docs/docs.sh b/ci/jobs/3-docs/docs.sh
deleted file mode 100755
index fe2b96873..000000000
--- a/ci/jobs/3-docs/docs.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-set -exuo pipefail
-
-./bootstrap
-./configure --enable-only-doc
-
-pushd ./doc/doxygen/
-
-make full
-
-popd
diff --git a/ci/jobs/3-docs/job.sh b/ci/jobs/3-docs/job.sh
deleted file mode 100755
index a72bca4ba..000000000
--- a/ci/jobs/3-docs/job.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-set -exuo pipefail
-
-job_dir=$(dirname "${BASH_SOURCE[0]}")
-
-"${job_dir}"/docs.sh
diff --git a/ci/jobs/4-deb-package/install-fix.patch b/ci/jobs/4-deb-package/install-fix.patch
deleted file mode 100644
index 8334c5a7a..000000000
--- a/ci/jobs/4-deb-package/install-fix.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/debian/taler-exchange.install b/debian/taler-exchange.install
-index 631c270b..072c6231 100644
---- a/debian/taler-exchange.install
-+++ b/debian/taler-exchange.install
-@@ -36,6 +36,6 @@ usr/share/taler/exchange/templates/*.must
- debian/etc-taler-exchange/* etc/
-
- # Terms of service / privacy policy templates
--usr/share/taler/exchange/*.rst
-+#usr/share/taler/exchange/terms/*.rst
- # Translations of ToS/PP
--usr/share/taler/exchange/locale/*/LC_MESSAGES/*.po
-+#usr/share/taler/exchange/terms/locale/*/LC_MESSAGES/*.po
diff --git a/ci/jobs/4-deb-package/job.sh b/ci/jobs/4-deb-package/job.sh
deleted file mode 100755
index dc78cdf24..000000000
--- a/ci/jobs/4-deb-package/job.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-set -exuo pipefail
-# This file is in the public domain.
-# Helper script to build the latest DEB packages in the container.
-
-unset LD_LIBRARY_PATH
-
-
-git apply ./ci/jobs/2-deb-package/install-fix.patch
-
-# Get current version from debian/control file.
-DEB_VERSION=$(dpkg-parsechangelog -S Version)
-
-# Install build-time dependencies.
-mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
-
-# We do a sparse checkout, so we need to hint
-# the version to the build system.
-echo $DEB_VERSION > .version
-./bootstrap
-dpkg-buildpackage -rfakeroot -b -uc -us
-
-ls ../*.deb
-mv ../*.deb /artifacts/