mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
881c3a369f
I decided to configure crontab on my desktop because coverage test requires 20+GB of ram
16 lines
295 B
Bash
Executable File
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 |