Continuos integration and unittests, are yours friends.
Setup http://travis-ci.org for you projects. It is as easy as adding a simple YaML file into the repository.
What it can do for me, you asking? It is simple, it can run unittests on post-commit hooks and test pull-requests from the community.