Files
dive-into-python3/push
T
2009-06-09 13:08:20 -04:00

15 lines
344 B
Bash
Executable File

#!/bin/sh
die () {
echo "$1" >/dev/stderr
exit 1
}
hg status|grep "^\?" && die "Stray files found."
echo "running unit tests"
cd examples/
python3 regression.py || die "Unit tests failed."
cd ..
ssh diveintomark.org "hg -R /home/mark/db/diveintopython3/ serve --stdio" &
hg push ssh://mark@diveintomark.org//home/mark/db/diveintopython3/