Skip to content

Instantly share code, notes, and snippets.

@imnnquy
Created February 24, 2021 06:04
Show Gist options
  • Save imnnquy/7748f937ac92192dab03f25a9080bb3e to your computer and use it in GitHub Desktop.
Save imnnquy/7748f937ac92192dab03f25a9080bb3e to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
# Check style for main and test
./gradlew checkstyleMain
./gradlew checkstyleTest
# Check the exit status from gradle command
if [ $? -eq 0 ]; then
echo "Your code has been validated successfully!"
else
echo "Validation failed, please check your code and try again..."
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment