@DevSolo suggested Continuous Integration, however i have always felt it was awkward: by the time the bot signals you that something is broken, the whole team may have contamined already.
Instead I would suggest Automated Integration: instead of having developers commit into the main repository, they ask the bot to commit for them, and it commits ONLY if the unit-tests / non-regressions all pass.
Once you get that, you don't have to worry about Continuous Integration any longer: you are assured that if you ever need to clone the main repository, you'll get a 100% validated software... which means that any regression is of your own fault :)