From: Michal Sojka Date: Fri, 15 Sep 2017 22:13:59 +0000 (+0200) Subject: Change the cron script (btw. we are now triggered by systemd timers) X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain Change the cron script (btw. we are now triggered by systemd timers) --- diff --git a/continuous/cron.sh b/continuous/cron.sh index 9f8f4a2..6a53ecd 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -3,6 +3,7 @@ PATH=$PATH:$HOME/bin set -e +set -o pipefail cd $(dirname $0) @@ -16,11 +17,7 @@ mkdir -p logs NOW=$(date +%F_%R:%S) LOG=${NOW}.log -if ! make -C steps > logs/$LOG 2>&1; then - cat logs/$LOG - exit 1 -fi - +make -C steps 1>&1 | tee logs/$LOG make -C www --silent publish ( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )