]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - continuous/cron.sh
Propagate make failure to the caller (cron)
[can-benchmark.git] / continuous / cron.sh
index 0e892d4abe1aa9ae83c7fc902f9332eb1b4e2301..97243b46e3b5c2842708c1c6b49ecf92ae66e061 100755 (executable)
@@ -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 )