X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/1ecac84cf6af37ef80a0f38959b3eed19b8c9ee3..HEAD:/continuous/cron.sh diff --git a/continuous/cron.sh b/continuous/cron.sh index 0e892d4..6a53ecd 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -1,11 +1,25 @@ #!/bin/bash +PATH=$PATH:$HOME/bin + set -e +set -o pipefail cd $(dirname $0) +# Wakeup glab +sudo /usr/sbin/etherwake 00:0c:f1:77:ec:46 +chronic timeout 5m sh -c 'while ! ssh sojka@glab true; do sleep 1; done' +sleep 30 # Wait a bit to finish all boot jobs etc. + mkdir -p logs NOW=$(date +%F_%R:%S) +LOG=${NOW}.log + +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 ) -make -C steps > logs/${NOW}.log 2>&1 +#ssh -f sojka@glab 'sudo /sbin/poweroff'