server/process/cron/preview.cron
Enno Rehling a3ebddeae4 update cron to check environment for switches
use server/bin instead of ~/bin
2017-05-26 13:52:55 +02:00

15 lines
357 B
Bash
Executable file

#!/bin/bash
[ "$PREVIEW" != "yes" ] && exit
[ -z ${ERESSEA} ] && ERESSEA=$HOME/eressea
branch="develop"
if [ -e ${ERESSEA}/build/.preview ]; then
branch=`cat ${ERESSEA}/build/.preview`
fi
SRC=${ERESSEA}/git
${SRC}/s/preview build ${branch} || exit $?
for game in 2 3 4 ; do
${SRC}/s/preview -g ${game} run && \
${SRC}/s/preview -g ${game} send
done