sukria/Dancer — pull request #835 by LoonyPandora (2012-09-27 19:48:25+00:00)
Title: Add Travis CI Support

http://travis-ci.org

Travis CI is a really cool hosted Continuous Integration Service. It's really easy to use, and is integrated into GitHub very well. A lot of projects have started using it and I think it would be cool if Dancer did too.

Travis seems to be a great fit with the Perl testing culture. It's kind of similar to CPAN Testers, but you don't have to push a release out and then wait a long time. Downside is that it only tests Linux environments, but then again it isn't a replacement for CPAN Testers.

Benefits:
- Tests against multiple versions of Perl on every push, starting from a vanilla environment - so you'll know if you forget to specify a non-core dependency.
- Automagically tests pull requests, letting you see whether the PR is good right away - see an example on my fork of Dancer here: https://github.com/LoonyPandora/Dancer/pull/1
- Does all this in a nice easy-to-follow way, letting you see which tests fail. Example: http://travis-ci.org/#!/LoonyPandora/Dancer/jobs/2586742

All in all, it's super easy to setup, gives real benefits, and looks kinda cool. You can get badges showing whether the last build failed / passed!

It's quite configurable, so you could test certain branches only, do specific things for specific versions of perl etc. Well worth reading up on.

There are lots of options, so consider this PR as a simple example of a basic setup. The docs are here: http://about.travis-ci.org/docs/