[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: [ci] use podman only; make -j(#c
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: [ci] use podman only; make -j(#cpu/2) |
Date: |
Wed, 20 Dec 2023 13:59:14 +0100 |
This is an automated email from the git hooks/post-receive script.
oec pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 45cc578e [ci] use podman only; make -j(#cpu/2)
45cc578e is described below
commit 45cc578e67e8aab2caf9f34e63e00b9a490cd8ee
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Wed Dec 20 13:59:07 2023 +0100
[ci] use podman only; make -j(#cpu/2)
---
contrib/ci/ci.sh | 5 ++---
contrib/ci/jobs/1-build/build.sh | 2 ++
contrib/ci/jobs/1-build/config.ini | 2 ++
contrib/ci/jobs/2-test/config.ini | 2 +-
contrib/ci/jobs/2-test/test.sh | 4 +++-
contrib/ci/jobs/3-docs/config.ini | 2 +-
6 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/contrib/ci/ci.sh b/contrib/ci/ci.sh
index 47c7a211..dd7277c0 100755
--- a/contrib/ci/ci.sh
+++ b/contrib/ci/ci.sh
@@ -1,9 +1,8 @@
#!/bin/bash
set -exvuo pipefail
-# Use podman if available, otherwise use docker.
-# Fails if neither is found in PATH
-OCI_RUNTIME=$(which podman || which docker)
+# Use podman, fails if it isn't found in PATH
+OCI_RUNTIME=$(which podman)
REPO_NAME=$(basename "${PWD}")
JOB_NAME="${1}"
JOB_CONTAINER=$((grep CONTAINER_NAME contrib/ci/jobs/${JOB_NAME}/config.ini |
cut -d' ' -f 3) || echo "${REPO_NAME}")
diff --git a/contrib/ci/jobs/1-build/build.sh b/contrib/ci/jobs/1-build/build.sh
index 35faf0ac..d3fcfab8 100755
--- a/contrib/ci/jobs/1-build/build.sh
+++ b/contrib/ci/jobs/1-build/build.sh
@@ -9,4 +9,6 @@ apt-get upgrade -yqq
--enable-logging=verbose \
--disable-doc
+nump=$(grep processor /proc/cpuinfo | wc -l)
+make -j$(( $nump / 2 ))
make
diff --git a/contrib/ci/jobs/1-build/config.ini
b/contrib/ci/jobs/1-build/config.ini
new file mode 100644
index 00000000..c21915a0
--- /dev/null
+++ b/contrib/ci/jobs/1-build/config.ini
@@ -0,0 +1,2 @@
+[build]
+CONTAINER_NAME = localhost/exchange
diff --git a/contrib/ci/jobs/2-test/config.ini
b/contrib/ci/jobs/2-test/config.ini
index c5a77c03..49cc8ea8 100644
--- a/contrib/ci/jobs/2-test/config.ini
+++ b/contrib/ci/jobs/2-test/config.ini
@@ -2,5 +2,5 @@
HALT_ON_FAILURE = False
WARN_ON_FAILURE = True
CONTAINER_BUILD = True
-CONTAINER_NAME = exchange
+CONTAINER_NAME = localhost/exchange
CONTAINER_ARCH = amd64
diff --git a/contrib/ci/jobs/2-test/test.sh b/contrib/ci/jobs/2-test/test.sh
index 4c414230..3681f51c 100755
--- a/contrib/ci/jobs/2-test/test.sh
+++ b/contrib/ci/jobs/2-test/test.sh
@@ -8,7 +8,9 @@ apt-get upgrade -yqq
./configure CFLAGS="-ggdb -O0" \
--enable-logging=verbose \
--disable-doc
-make
+
+nump=$(grep processor /proc/cpuinfo | wc -l)
+make -j$(( $nump / 2 ))
make install
sudo -u postgres /usr/lib/postgresql/15/bin/postgres -D
/etc/postgresql/15/main -h localhost -p 5432 &
diff --git a/contrib/ci/jobs/3-docs/config.ini
b/contrib/ci/jobs/3-docs/config.ini
index c5a77c03..49cc8ea8 100644
--- a/contrib/ci/jobs/3-docs/config.ini
+++ b/contrib/ci/jobs/3-docs/config.ini
@@ -2,5 +2,5 @@
HALT_ON_FAILURE = False
WARN_ON_FAILURE = True
CONTAINER_BUILD = True
-CONTAINER_NAME = exchange
+CONTAINER_NAME = localhost/exchange
CONTAINER_ARCH = amd64
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: [ci] use podman only; make -j(#cpu/2),
gnunet <=