Skip to content

Instantly share code, notes, and snippets.

@florina-muntenescu
Created June 24, 2018 22:26
Show Gist options
  • Save florina-muntenescu/ea172481ba0ea78d34140c8fbc0757b6 to your computer and use it in GitHub Desktop.
Save florina-muntenescu/ea172481ba0ea78d34140c8fbc0757b6 to your computer and use it in GitHub Desktop.
Pre-commit hooks
#!/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