server/process/cron/preview.cron

16 lines
355 B
Text
Raw Normal View History

2015-02-01 08:29:21 +01:00
#!/bin/bash
[ "$PREVIEW" != "yes" ] && exit
[ -z ${ERESSEA} ] && ERESSEA=$HOME/eressea
branch="develop"
if [ -e ${ERESSEA}/build/.preview ]; then
branch=`cat ${ERESSEA}/build/.preview`
fi
2015-02-22 16:04:33 +01:00
SRC=${ERESSEA}/git
${SRC}/s/preview build ${branch} || exit $?
2018-02-04 12:08:51 +01:00
for game in 2 3 ; do
2015-02-22 16:04:33 +01:00
${SRC}/s/preview -g ${game} run && \
${SRC}/s/preview -g ${game} send
2014-08-16 11:43:46 +02:00
done