我尝试了 CircleCI 但失败了

时间:2021-02-09 14:48:19

标签: circleci

我想使用 CircleCI。
我试着开始。

  1. 我创建了一个新的存储库。
    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.

enter image description here

  1. 设置 CircleCI 单击设置项目。嗯...我喜欢蟒蛇。 enter image description here

  2. 在“circleci-project-setup”分支上上传 config.yml。 enter image description here

<块引用>

单击开始构建并按照提示将您的配置添加到新分支并启动您的第一个管道。注意:您还可以手动将 config.yml 添加到 .circleci 文件夹下的项目根目录,并将其推送到您的 VCS 提供商。

Click Start Building??? 这没什么。文件是旧的?
我试试commit and run按钮。

  1. 失败,失败,失败 enter image description here

为什么我不能


下次试试
enter image description here enter image description here

<块引用>

错误计算缓存键:模板:cacheKey:1:7:正在执行 中的“cacheKey”:调用校验和时出错: 打开/home/circleci/project/requirements.txt:没有这样的文件或 目录

<块引用>

#!/bin/bash -eo pipefail 如果为真;然后 pip install --user -r requirements.txt 否则 pip install -r requirements.txt fi

错误:无法打开需求文件:[Errno 2] 没有那个文件或 目录:'requirements.txt'

以代码退出状态 1 退出 CircleCI 收到退出代码 1

2 个答案:

答案 0 :(得分:0)

如文档所说,需要将 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 ,我猜可能是文档缺失。

答案 1 :(得分:0)

天啊.. 我使用 circleci 目录代替 .circleci

成功...enter image description here