taler-deployment

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

commit 614fd086cc21976731f6b71ba9cd5001882f3a4c
parent 9a132813309e289899fcf929733268ae68ce1341
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Thu,  5 Sep 2019 15:20:03 +0200

More responsability to bootstrap script

Diffstat:
Mbootstrap-taler | 34++++++++++++++++++++++++++++++++--
Mbuildbot/master.cfg | 3+--
2 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/bootstrap-taler b/bootstrap-taler @@ -28,14 +28,23 @@ if [ -z ${1+x} ]; then fi ENVNAME=$1 -CURRENCY=TESTKUDOS - source ~/envconfig case $ENVNAME in + + test) + CURRENCY=TESTKUDOS + ;; + internal) + CURRENCY=INTKUDOS + ;; demo) CURRENCY=KUDOS ;; + *) + echo Invalid Envname, please use test or internal or demo. + exit 1 + ;; esac cd $HOME @@ -105,3 +114,24 @@ mkdir -p "$HOME/taler-data" ln -sf ../deployment/taler-build/Makefile stamps/ ln -sf ../deployment/taler-build/invalidate.sh stamps/ + +if test "test" = $ENVNAME; then + if ! test "taler-test" = $(whoami); then + echo Please run as the 'taler-test' user. + exit 1 + fi + + if ! test -d $HOME/test_worker; then + echo Creating test_worker.. + buildbot-worker create-worker $HOME/test_worker localhost:9989 test-worker test-pass + else + echo test_worker already in place. + fi + + if ! test -d $HOME/auditor_worker; then + echo Creating auditor_worker.. + buildbot-worker create-worker $HOME/auditor_worker localhost:9989 test-auditor-worker auditor-pass + else + echo auditor_worker already in place. + fi +fi diff --git a/buildbot/master.cfg b/buildbot/master.cfg @@ -38,8 +38,7 @@ c["workers"] = [ worker.Worker("sites-worker", "sites-pass"), ## - # This worker builds Taler for the 'green' color under - # the 'test' deployment. + # This worker builds Taler for the 'test' deployment. worker.Worker("test-worker", "test-pass"), ##