X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/05d2c72502044e8ab33346264dfaf81ee798be00..3a74f1734698b98d56c4cd36b817f7d9e5074ea7:/continuous/cron.sh diff --git a/continuous/cron.sh b/continuous/cron.sh index ef5a309..97243b4 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -9,8 +9,13 @@ cd $(dirname $0) mkdir -p logs NOW=$(date +%F_%R:%S) -LOG=logs/${NOW}.log +LOG=${NOW}.log -make -C steps > $LOG 2>&1 || cat $LOG +if ! make -C steps > logs/$LOG 2>&1; then + cat logs/$LOG + exit 1 +fi make -C www --silent publish + +( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )