Created
June 24, 2018 22:26
-
-
Save florina-muntenescu/ea172481ba0ea78d34140c8fbc0757b6 to your computer and use it in GitHub Desktop.
Pre-commit hooks
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 | |
# | |
# Add hook scripts to be run before every commit. | |
# This is called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook save this file in your repo .git/hooks folder | |
# clean and run tests | |
./gradlew clean test | |
# run spotlessApply | |
./gradlew sA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment