taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit dc9fab323fc836733b7cc998ee6141d7ecd19cc5
parent be75bbfb879c185f881f824114579073763416e4
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Wed,  8 Mar 2017 14:17:34 +0100

Buildbot does sanity checks for exchange and merchant.

Diffstat:
Mbuildbot/master.cfg | 26+++++++++++++++++++++++---
Dtaler-build/switch_bluegreen.sh | 17-----------------
2 files changed, 23 insertions(+), 20 deletions(-)

diff --git 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 @@ -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