Last active
August 31, 2019 05:08
-
-
Save kikoso/692992f7afb0b6818188b55a96bc93fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
command="./gradlew clean test" | |
echo "Executing tests before commit" | |
$command | |
result=$? | |
if [ "$result" -ne 0 ]; then | |
echo "Failed execution of tests" | |
exit 1 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment