summaryrefslogtreecommitdiff
path: root/buildbot/build.sh
blob: 382c2fc8431cd5df24340645ccdb8b5b5215313e (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."

# Treat this as error, so dependent schedulers won't fire up.
exit 1
fi

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