gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated (a4427442 -> 01196043)


From: gnunet
Subject: [taler-exchange] branch master updated (a4427442 -> 01196043)
Date: Sat, 09 Sep 2023 05:03:22 +0200

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

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

    from a4427442 update man pages
     new 31708511 docs: make doxygen fail on warnings
     new 70e8815f ci: add docs dependencies to container environment
     new 45e3209f ci: add codespell job
     new 30b0302c ci: setup postgresql inside test job
     new 1015a389 ci: install full gnunet package for gnunettest dep
     new 0d272328 ci: improve log print logic in test script
     new 01196043 ci: add wget to container env testing deps

The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ci/Containerfile                                   | 15 +++++++-
 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                 | 12 ++++--
 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
 doc/doxygen/taler.doxy                             |  2 +-
 13 files changed, 77 insertions(+), 7 deletions(-)
 create mode 100644 ci/jobs/0-codespell/config.ini
 create mode 100644 ci/jobs/0-codespell/dictionary.txt
 create mode 100755 ci/jobs/0-codespell/job.sh
 rename ci/jobs/{0-build => 1-build}/build.sh (100%)
 rename ci/jobs/{0-build => 1-build}/job.sh (100%)
 rename ci/jobs/{1-test => 2-test}/job.sh (100%)
 rename ci/jobs/{1-test => 2-test}/test.sh (54%)
 rename ci/jobs/{2-docs => 3-docs}/docs.sh (100%)
 rename ci/jobs/{2-docs => 3-docs}/job.sh (100%)
 rename ci/jobs/{3-deb-package => 4-deb-package}/install-fix.patch (100%)
 rename ci/jobs/{3-deb-package => 4-deb-package}/job.sh (100%)

diff --git a/ci/Containerfile b/ci/Containerfile
index 3cc99cb7..8b079216 100644
--- a/ci/Containerfile
+++ b/ci/Containerfile
@@ -7,9 +7,7 @@ RUN apt-get update -yqq && \
                   autoconf \
                   autopoint \
                   curl \
-                  doxygen \
                    git \
-                  jq \
                   libcurl4-gnutls-dev \
                   libgcrypt-dev \
                   libidn11-dev \
@@ -36,6 +34,18 @@ RUN apt-get install -yqq \
                    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
@@ -50,6 +60,7 @@ RUN cat /etc/apt/preferences.d/taler && \
     apt-get install -y \
                    libgnunet-dev \
                    libgnunet \
+                   gnunet \
 && rm -rf /var/lib/apt/lists/*
 
 
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 54%
rename from ci/jobs/1-test/test.sh
rename to ci/jobs/2-test/test.sh
index 6c3d2be2..39fca5c1 100755
--- a/ci/jobs/1-test/test.sh
+++ b/ci/jobs/2-test/test.sh
@@ -8,22 +8,26 @@ set -evu
 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 make check
+       LD_LIBRARY_PATH=/usr/local/lib PGPORT=5432 make check
 }
 
 print_logs()
 {
        for i in src/*/test-suite.log
        do
-               FAILURE="$(grep '^FAIL:' ${i} | cut -d' ' -f2)"
-               if [ ! -z "${FAILURE}" ]; then
+               for FAILURE in $(grep '^FAIL:' ${i} | cut -d' ' -f2)
+               do
                        echo "Printing ${FAILURE}.log"
                        tail "$(dirname $i)/${FAILURE}.log"
-               fi
+               done
        done
 }
 
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
diff --git a/doc/doxygen/taler.doxy b/doc/doxygen/taler.doxy
index 384e0396..a9a2bfe9 100644
--- a/doc/doxygen/taler.doxy
+++ b/doc/doxygen/taler.doxy
@@ -866,7 +866,7 @@ WARN_NO_PARAMDOC       = YES
 # Possible values are: NO, YES and FAIL_ON_WARNINGS.
 # The default value is: NO.
 
-WARN_AS_ERROR          = NO
+WARN_AS_ERROR          = FAIL_ON_WARNINGS
 
 # The WARN_FORMAT tag determines the format of the warning messages that 
doxygen
 # can produce. The string should contain the $file, $line, and $text tags, 
which

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