If you are already having a continuous integration system, it might already be Jenkins as it is quite common in the Java world. If you do not want to set up another system, you should try to use Jenkins as well to run automated tests of your play applications. This recipe will help you to do a quick setup of Jenkins and make it ready to deploy on a Play application.
You can find the source code of this example in the examples/chapter7/test-jenkins
directory.
A running Jenkins is essential of course. Either use the current running one, or get a fresh copy from http://www.jenkins-ci.org, download the WAR file and just start it with the following:
java -jar jenkins.war
Again, we will also set up a repository using mercurial. This time we will also access the repository via HTTP instead of file system, as it would be done in a real world setup as well. First, you should install the mercurial plugin of Jenkins. Go to http://localhost:8080
, click on Manage...