Add branch and before script command for Travis builds