gpt4 book ai didi

git - 特 pull 维斯 CI : Avoiding repeated installation of packages for each commit

转载 作者:太空狗 更新时间:2023-10-29 13:12:55 31 4
gpt4 key购买 nike

正如您在 this travis.yml 中看到的那样文件,我的代码依赖于一些第三方库,我在构建项目之前将它们安装在远程系统上。

Travis 每次推送提交时都会下载并构建这些库,这可以避免吗?我的意思是,只为一个项目做一次,然后在以后的构建过程中使用那些已经构建的库进行后续提交?

最佳答案

有一个特征caching directories and dependencies但它目前是实验性的,不能直接用于公共(public)存储库。要添加对公共(public)存储库的支持,我们必须通过将 sudo: false 添加到 .travis.yml 的顶层来禁用 sudoing。这会将 future 的构建路由到 container-based infrastructure特 pull 维斯 CI。

但是缓存现在的工作方式有局限性,引自 documentation :

The caching tars up all the directories listed in the configuration and uploads them to S3, using a secure and protected URL, ensuring security and privacy of the uploaded archives.
Note that this makes our cache not network-local, it’s still bound to network bandwidth and DNS resolutions for S3. That impacts what you can and should store in the cache. If you store archives larger than a few hundred megabytes in the cache, it’s unlikely that you’ll see a big speed improvement.

关于git - 特 pull 维斯 CI : Avoiding repeated installation of packages for each commit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29603909/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com