summaryrefslogtreecommitdiff
path: root/buildbot/make-buildbot-master.sh
blob: b4fbfbbf260f2adb82f6224059a3fc1334034e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

# Bootstrap the Taler setup for the buildmaster.

set -eu

if ! test "buildbot-master" = $(whoami); then
  echo Only run as the 'buildbot-master' user.
  exit 1
fi

cd

BRANCH=master
REPOS="deployment"

cd $HOME

for component in $REPOS; do
  if ! test -d $HOME/$component; then
    git clone git://git.taler.net/$component.git
  fi
done

for component in $REPOS; do
  echo "Checking out $component to $BRANCH"
  git -C $HOME/$component checkout $BRANCH
done

if [[ ! -d ./master ]]; then
    buildbot create-master master
    cd master
    ln -s ../deployment/buildbot/master.cfg
    cd ..
fi

if [[ ! -d worker ]]; then
  buildbot-worker create-worker --umask=0o22 ~/worker localhost:9989 buildmaster-worker buildmaster-pass
fi