Improving Git hooks

This commit is contained in:
Vitor Pamplona
2023-10-17 15:36:26 -04:00
parent 404e6cd862
commit f2e6efe2b7
2 changed files with 11 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ NO_COLOR='\033[0m'
echo "*********************************************************"
echo "Running git pre-commit hook. Running Static analysis... "
echo "*********************************************************"
echo ""
echo "Java Version: "
echo "$JAVA_HOME"
echo "$(java -version)"
echo "Running test... "
./gradlew ktlintCheck

View File

@@ -4,8 +4,13 @@ GREEN='\033[0;32m'
NO_COLOR='\033[0m'
echo "*********************************************************"
echo "Running git pre-push hook. Running test... "
echo "Running git pre-push hook."
echo "*********************************************************"
echo ""
echo "Java Version: "
echo "$JAVA_HOME"
echo "$(java -version)"
echo "Running test... "
./gradlew test