[hibernate-dev] Small script to run your test suite in a cloned repo

Emmanuel Bernard emmanuel at hibernate.org
Thu Jan 20 04:50:25 EST 2011


It's easy to forget to add a file in a commit and then proposed an incomplete pull request.

Here is a small script that can help you prevent such things

$ build.sh
will clone the repo in your current directory and run 'maven clean install' off the current branch
if you've forgotten a file, the clone will not get it

$ build.sh clean test -pl module1,module2
will clone the repo in your current directory and run 'maven clean test -pl module1,module2l' off the current branch

https://gist.github.com/787631

This script has another advantage. Since the repo is cloned, you can go work on your next problem while the test suite run as your current directory is not where the test suite runs.

Of course this is maven specific but it can be easily adapted to run gradle.

HTH

Emmanuel



More information about the hibernate-dev mailing list