Another approach is donating to a charity you despise. Some friends of mine use a mutual donation pact to get things done. Each sets a goal they need to accomplish by the end of the month, and hands the other a signed check for $50 for a charity or political campaign they hate. If they don't accomplish the goal, the other person drops the envelope in the mail.
Maybe an alternative is a fixed amount going to charity where a broken build means a portion of that money essentially goes to the equivalent of /dev/null.