I've got a script lying around I've used to do this on an ad-hoc basis. I'll have to clean it up and make it available on Travis.