summaryrefslogtreecommitdiff
path: root/buildbot/build.sh
blob: 4e5f22c3e1a6f832c0f784e67ef27034c10f049b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if test "$(whoami)" = "$(cat /home/test/active)"; then
  echo "I'm the active color, no need to compile and switch!"
  exit 0
fi

PAUSE_LOCKFILE=/tmp/buildbot_pause.lock

if [ -f $PAUSE_LOCKFILE ]; then
echo "The Buildbot is paused, remove ${PAUSE_LOCKFILE} to resume."
# exit code 2 not really documented, just something
# different from the classical 1 (it's not a error after all).
exit 2
fi

source "${HOME}/activate"
taler-deployment-build