mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-04 11:51:52 +02:00
20 lines
333 B
Bash
Executable file
20 lines
333 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo "Looking for changes..."
|
|
files=`git status --porcelain | wc -l`
|
|
if [ ${files} == 0 ] ; then
|
|
echo "OK"
|
|
else
|
|
echo "FAIL"
|
|
git status
|
|
exit 1
|
|
fi
|
|
|
|
data/githooks/pre-commit || { echo "FAIL"; exit 1; }
|
|
|
|
# Unit tests with pytest.
|
|
|
|
echo "Run tests with pytest..."
|
|
pytest -vv || { echo "FAIL"; exit 1; }
|
|
|
|
exit 0
|