summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-08 14:17:34 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-08 14:21:14 +0100
commitdc9fab323fc836733b7cc998ee6141d7ecd19cc5 (patch)
tree7d1f8b30b49cc2d9be608c6b30e6dfab3c3a2a68
parentbe75bbfb879c185f881f824114579073763416e4 (diff)
downloaddeployment-dc9fab323fc836733b7cc998ee6141d7ecd19cc5.tar.gz
deployment-dc9fab323fc836733b7cc998ee6141d7ecd19cc5.tar.bz2
deployment-dc9fab323fc836733b7cc998ee6141d7ecd19cc5.zip
Buildbot does sanity checks for exchange and merchant.
-rw-r--r--buildbot/master.cfg26
-rwxr-xr-xtaler-build/switch_bluegreen.sh17
2 files changed, 23 insertions, 20 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 9352d41..fa76697 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -102,9 +102,29 @@ switcher_factory.addStep(Git(repourl='git://git.taler.net/deployment.git',
branch='master'))
switcher_factory.addStep(ShellCommand(name="build",
description="Building inactive blue-green party.",
- descriptionDone="timestamps invalidated",
- command=["./switch_bluegreen.sh"],
- workdir="build/taler-build"))
+ descriptionDone="Compilation successful.",
+ command=["./switch_build.sh"],
+ workdir="build/taler-build"))
+switcher_factory.addStep(ShellCommand(name="build",
+ description="Starting inactive blue-green party.",
+ descriptionDone="Restarted.",
+ command=["./switch_restart.sh"],
+ workdir="build/taler-build"))
+switcher_factory.addStep(ShellCommand(name="build",
+ description="Checking Exchange.",
+ descriptionDone="Exchange is responsive.",
+ command=["./switch_check_exchange.sh"],
+ workdir="build/taler-build"))
+switcher_factory.addStep(ShellCommand(name="build",
+ description="Checking Merchants Backends.",
+ descriptionDone="Both backends are responsive.",
+ command=["./switch_check_merchant.sh"],
+ workdir="build/taler-build"))
+switcher_factory.addStep(ShellCommand(name="build",
+ description="Switching active party.",
+ descriptionDone="Active party has been switched.",
+ command=["./switch_switch.sh"],
+ workdir="build/taler-build"))
selenium_factory = util.BuildFactory()
selenium_factory.addStep(ShellCommand(name="selenium",
description="Headless browser test",
diff --git a/taler-build/switch_bluegreen.sh b/taler-build/switch_bluegreen.sh
deleted file mode 100755
index fe46a73..0000000
--- a/taler-build/switch_bluegreen.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-active=$(sudo -u test cat /home/test/active)
-nonactive="test-blue"
-echo "Active party: ${active}"
-
-if test $active = "test-blue"; then
- nonactive="test-green"
-fi
-
-if sudo -u $nonactive \
- bash -c 'source $HOME/activate; taler-deployment-build'; then
-
- echo "Switching to ${nonactive}."
- sudo -u test bash -c "cd /home/test; ./ln-${nonactive}.sh"
- sudo -u $nonactive bash -c 'cd $HOME; . activate; taler-deployment-restart'
-fi