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

source "${HOME}/activate"
ACTIVE_COLOR="$(cat /home/test/active)"

if test "${TALER_ENV_COLOR}" = "${ACTIVE_COLOR}"; 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

taler-deployment-build