Skip to content

Instantly share code, notes, and snippets.

@kikoso
Last active August 31, 2019 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kikoso/692992f7afb0b6818188b55a96bc93fe to your computer and use it in GitHub Desktop.
Save kikoso/692992f7afb0b6818188b55a96bc93fe to your computer and use it in GitHub Desktop.
#!/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