/precommithook

This is a git precommithook that runs sbt test before a commit and aborts the commit if tests fail

Primary LanguageShellApache License 2.0Apache-2.0

git sbt test precommithook

This is a git precommithook that runs sbt test before a commit and aborts the commit if tests fail

Requirements

It works only in unix environments. It has to be a sbt project!!

How to use it?

Put the sbt script in your project root directory to make sure the tests can be run no matter if a local sbt installation is available or not.

Put the precommit script in the .git/hooks directory of your project. This will enable the hook.

I want to commit without testing

If you want to commit without testing you can use git commit -m "Message" --no-verify