Add travis hook and finalize batch environment.