Git script to prevent the use of a Continuous Integration Server by running a custom command (e.g. build and test) before pushing to a repository
This script made it easier to run a private build before pushing your modifications in order to compile and run your unit test.
- Copy all the files (respecting the names) in a folder that is in your path
- If you are under Windows, install Growl for Windows
- For each new git repository you use and only one time, set the command that will be run before pushing
Example using maven :
git config private-build.command "mvn clean install"
Example using msbuild :
git config private-build.command "msbuild mybuild.build /t:UnitTests /p:Configuration:Debug"
- call
git build
each time you want to push!