commit 4a768943487d3d572732449d6be6db4eb4404508
parent 4dd81e10d7b848c2bdb30532c7f03418312ee78a
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 23 Feb 2020 14:50:42 +0100
update buildbot to use current build logic for test.taler.net
Diffstat:
5 files changed, 14 insertions(+), 25 deletions(-)
diff --git a/buildbot/checks.sh b/buildbot/checks.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+# Step for the BUILD_FACTORY running the 'test.taler.net' site.
+
set -eu
if test -z "${DEPLOYMENT}"; then
@@ -98,7 +100,7 @@ if ! test 302 = $http_status_code; then
exit 1
fi
-URL="https://${DEPLOYMENT}.${DOMAIN}/en/index.html"
+URL="https://${DEPLOYMENT}.${DOMAIN}/en/index.html"
http_status_code=$(curl \
-s $URL -o /dev/null \
-w "%{http_code}")
@@ -122,14 +124,14 @@ if $(taler-config -s twister -o twister_deploy >& /dev/null); then
-s $twister_url -o /dev/null \
-w "%{http_code}")
if ! test 200 = $http_status_code; then
-
+
if test 503 = $http_status_code; then
printf "%s %s\n" \
"Hit a '503 Service Unavailable' from Twister." \
"Assuming all is correct."
exit 0
fi
-
+
# Real failure here.
printf "%s failed\n" $twister_url
printf "$error_fmt" \
diff --git a/buildbot/config.sh b/buildbot/config.sh
@@ -1,6 +1,10 @@
#!/bin/bash
+# Step for the BUILD_FACTORY running the 'test.taler.net' site.
+
set -eu
source "${HOME}/activate"
-taler-deployment-config-generate
+taler-deployment bootstrap
+source "${HOME}/activate"
+taler-deployment build
diff --git a/buildbot/keys.sh b/buildbot/keys.sh
@@ -1,6 +1,7 @@
#!/bin/bash
+# Step for the BUILD_FACTORY running the 'test.taler.net' site.
set -eu
source "${HOME}/activate"
-taler-deployment-keyup
+taler-deployment-prepare
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
@@ -477,7 +477,7 @@ LINT_FACTORY.addStep(
CHECKER_FACTORY = util.BuildFactory()
CHECKER_FACTORY.addStep(
ShellCommand(
- name="clone sources",
+ name="fetch gnunet.org sources",
description="fetching latest deployment repositories from git.gnunet.org",
descriptionDone="GNUnet code base updated",
command=["./update-sources.sh", "git://git.gnunet.org/", "libmicrohttpd", "gnunet"],
@@ -486,7 +486,7 @@ CHECKER_FACTORY.addStep(
)
CHECKER_FACTORY.addStep(
ShellCommand(
- name="clone sources",
+ name="fetch taler.net sources",
description="fetching latest deployment repositories from git.taler.net",
descriptionDone="Taler code base updated",
command=["./update-sources.sh", "git://git.taler.net/", "exchange", "merchant", "wallet-core", "sync", "anastasis", "bank", "twister"],
@@ -577,18 +577,6 @@ BUILD_FACTORY.addStep(
BUILD_FACTORY.addStep(
ShellCommand(
- name="wire details sign",
- description="Signing exchange wire details.",
- descriptionDone="Exchange wire details got signed.",
- command=["./sign.sh"],
- workdir="../../deployment/buildbot",
- haltOnFailure=True,
- env={'BRANCH': util.Property("branch")}
- )
-)
-
-BUILD_FACTORY.addStep(
- ShellCommand(
name="restart services",
description="Restarting inactive blue-green party.",
descriptionDone="Restarting Taler.",
diff --git a/buildbot/sign.sh b/buildbot/sign.sh
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-set -eu
-
-source "${HOME}/activate"
-taler-deployment-sign