update Travis config for deployment

delete folder before upload
fix build errors/warnings