X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/1ecac84cf6af37ef80a0f38959b3eed19b8c9ee3..3a74f1734698b98d56c4cd36b817f7d9e5074ea7:/continuous/cron.sh diff --git a/continuous/cron.sh b/continuous/cron.sh index 0e892d4..97243b4 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -1,5 +1,7 @@ #!/bin/bash +PATH=$PATH:$HOME/bin + set -e cd $(dirname $0) @@ -7,5 +9,13 @@ cd $(dirname $0) 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 www --silent publish -make -C steps > logs/${NOW}.log 2>&1 +( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )