RA.Aid/.githooks/pre-push

13 lines
158 B
Bash
Executable File

#!/bin/bash
echo "Running tests before push..."
make test
RESULT=$?
if [ $RESULT -ne 0 ]; then
echo "Tests failed. Push aborted."
exit 1
fi
exit 0