You should use Travis CI

http://about.travis-ci.org/docs/user/how-to-setup-and-trigger-the-hook-manually/