Add travis before script to avoid publish failed