Skip to content

Commit

Permalink
TEST: Merging from hooksFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkr7 committed Mar 6, 2022
2 parents 7402b13 + 65441c6 commit 935b999
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ CWD=`pwd`
# Move to the project directory which you want to compile

echo '-------------------- MAVEN TEST-COMPILE STARTED -----------------------------'
printf "\n\n"

mvn test-compile
if [ $? -ne 0 ]; then
cd $CWD
echo 'Git Push [ABORTED] >-----------> because of existing issues, Please check logs!'
exit 1
else
printf "\n\n"
echo 'Compilation Status: No issues found >--------------------------> [SUCCESSFUL]'
echo 'Git Push >-----------------------------------------------------> [SUCCESSFUL]'
fi
Expand Down

0 comments on commit 935b999

Please sign in to comment.