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 | |
# git pre-push hook running build & tests using maven and only pushing if tests succeeded | |
# | |
# will do a local check-out of your currentl commit state and see if that one builds. | |
# this will spare you nasty surprises from missing to add files or having broken partially commited files | |
# | |
PWD=$(pwd) | |
ROOT="file://$(git rev-parse --show-toplevel)" | |
TMP=$(mktemp -d) |