mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
15 lines
344 B
Bash
Executable File
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/
|