run tests on commit

This commit is contained in:
ed 2021-06-01 05:49:41 +02:00
parent d6f516b34f
commit 273ca0c8da
5 changed files with 54 additions and 19 deletions

12
scripts/install-githooks.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -ex
[ -e setup.py ] || ..
[ -e setup.py ] || {
echo u wot
exit 1
}
cd .git/hooks
rm -f pre-commit
ln -s ../../scripts/run-tests.sh pre-commit