fix travis example code for auto publishing