Created
February 24, 2021 06:04
-
-
Save imnnquy/7748f937ac92192dab03f25a9080bb3e 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/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