optimize build process on travis