swc/scripts/cron/update-coverage.sh
강동윤 881c3a369f
Coverage with crontab (#920)
I decided to configure crontab on my desktop because coverage test requires 20+GB of ram
2020-08-01 16:57:36 +09:00

16 lines
295 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
git checkout master
changed=0
git pull --dry-run | grep -q -v 'Already up-to-date.' && changed=1
if [ $changed = '0' ] ; then
echo 'Already up-to-date'
exit 0
fi
$DIR/../coverage.sh