首页 > 解决方案 > 我尝试 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.

在此处输入图像描述

  1. 设置 CircleCI 单击设置项目。嗯...我喜欢蟒蛇。 在此处输入图像描述

  2. 在 'circleci-project-setup' 分支上上传 config.yml。 在此处输入图像描述

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

Click Start Building???这不重要。文件是旧的?
我试试commit and run按钮。

  1. 失败,失败,失败 在此处输入图像描述

为什么我不能


下次试试
在此处输入图像描述 在此处输入图像描述

错误计算缓存键:模板: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

解决方案


正如文档所说,您需要将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,我猜这可能是文档遗漏。


推荐阅读