]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - continuous/cron.sh
Push logs to remote repo (for backing up)
[can-benchmark.git] / continuous / cron.sh
1 #!/bin/bash
2
3 PATH=$PATH:$HOME/bin
4
5 set -e
6
7 cd $(dirname $0)
8
9 mkdir -p logs
10
11 NOW=$(date +%F_%R:%S)
12 LOG=${NOW}.log
13
14 make -C steps > logs/$LOG 2>&1 || cat logs/$LOG
15
16 make -C www --silent publish
17
18 ( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet )