Travis: Initiating build for commit '0dc5f51d9832dc34f0ccbe559635cd0e2a39f919' on branch 'master': factor out this logic so it's reusable