Building Play Framework applications using drone.io

Just recently I was in the need to set up continuous integration for OSS project that I am working on right now (DDocumentor) and I found that that drone.io others great free service for open source projects.

I created a few projects and everything went fluently since I was using Maven in those other projects but that wasn’t the case with DDocumentor - in this project we are using Play Framework which handles dependency pulling and building. But as it turns out, solution is pretty simple - use these steps for your build script:

wget -q http://downloads.typesafe.com/play/${PLAY_VERSION}/play-${PLAY_VERSION}.zip
unzip -q play-${PLAY_VERSION}.zip

play-${PLAY_VERSION}/play clean-all
play-${PLAY_VERSION}/play compile
play-${PLAY_VERSION}/play test

And add this (or whichever version you are using) to Environment variables section:

PLAY_VERSION=2.1.1

Now you are able to build and test Play apps on drone.io. Thanks goes to drone.io for providing such a great service :).