circleci - 我尝试 CircleCI 但失败了
问题描述
我想使用 CircleCI。
我试着开始。
- 我创建了一个新的存储库。
https://circleci.com/docs/2.0/getting-started/#section=getting-started
存储库名称为“hello-world”,具体分支名称为“circleci-project-setup”
We’ll commit the config below to duri0214/hello-world on a new branch called circleci-project-setup. If you prefer, you can use an existing config.
单击开始构建并按照提示将您的配置添加到新分支并启动您的第一个管道。注意:您还可以手动将 config.yml 添加到项目根目录下的 .circleci 文件夹,然后将其推送到您的 VCS 提供程序。
Click Start Building???
这不重要。文件是旧的?
我试试commit and run
按钮。
为什么我不能
错误计算缓存键:模板:cacheKey:1:7:在<checksum“requirements.txt”>执行“cacheKey”:错误调用校验和:打开/home/circleci/project/requirements.txt:没有这样的文件或目录
#!/bin/bash -eo pipefail if true; 然后 pip install --user -r requirements.txt 否则 pip install -r requirements.txt fi
错误:无法打开需求文件:[Errno 2] 没有这样的文件或目录:'requirements.txt'
退出代码退出状态 1 CircleCI 收到退出代码 1
解决方案
正如文档所说,您需要将circleci配置放在.circlei
目录中
Click Start Building and follow the prompt to add your config to a new branch and start your first pipeline. Note: You can also manually add a config.yml to your project root under a .circleci folder and push this to your VCS provider.
关于Click Start Building
,我猜这可能是文档遗漏。
推荐阅读
- java - 生成包含映射到资源文件的静态字段的 java 类
- r - 将向量的值按另一个向量分组后求和
- c# - 有没有办法将格式化的数学放入 XML 评论 C# Visual Studio 中?
- java - 如何在 Java 中每行输出 10 个整数?
- docker - 在 Docker 上运行 ELK 堆栈比在 VM 上运行它有什么好处
- elasticsearch - 弹性:搜索不得为空和其他一些条件
- r - 如何将 Igraph 与集群和 Dataframe 一起使用
- c# - 如何通过序列号获取 CD/DVD-ROM 驱动器号
- javascript - mapDispatchToProps 中的 react-router 访问历史记录道具
- python - Python set __contains__ 没有找到集合中包含的对象