Update travis config to avoid duplicate build and shorten build duration