Last active
November 25, 2022 00:38
-
-
Save chadmaughan/5889802 to your computer and use it in GitHub Desktop.
Revisions
-
chadmaughan revised this gist
Jun 29, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ git stash -q --keep-index # run the tests with the gradle wrapper ./gradlew test # store the last exit code in a variable RESULT=$? -
chadmaughan created this gist
Jun 29, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ #!/bin/sh # this hook is in SCM so that it can be shared # to install it, create a symbolic link in the projects .git/hooks folder # # i.e. - from the .git/hooks directory, run # $ ln -s ../../git-hooks/pre-commit.sh pre-commit # # to skip the tests, run with the --no-verify argument # i.e. - $ 'git commit --no-verify' # stash any unstaged changes git stash -q --keep-index # run the tests with the gradle wrapper ./gradlew test -q # store the last exit code in a variable RESULT=$? # unstash the unstashed changes git stash pop -q # return the './gradlew test' exit code exit $RESULT