Files
tarpc/hooks/pre-push
Adam Wright 3ea0f6fbb5 WIP
2016-01-10 17:49:18 -08:00

13 lines
179 B
Bash
Executable File

#!/bin/sh
cargo test
CARGO_RESULT=$?
if [ "$CARGO_RESULT" != "0" ];
then
echo
echo "FAIL (pre-push): Can't push unless all tests pass. code = $CARGO_RESULT"
exit 1
fi
exit 0