Created
July 20, 2017 13:58
-
-
Save ZahidRasheed/70c399af32d58267573b173dff762ce7 to your computer and use it in GitHub Desktop.
A git pre-push hook to make sure there are no lint errors before pushing code to the remote.
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 | |
echo "executing post-push hook to make sure lint is not failing the build" | |
# run the tests with the gradle wrapper | |
./gradlew lintProductionRelease | |
# store the last exit code in a variable | |
RESULT=$? | |
# return the './gradlew test' exit code | |
exit $RESULT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment