问题标签 [circleci-2.0]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
380 浏览

docker - 在 CircleCi 中的不同作业之间共享步骤的结果

config.yml在 CircleCi 中有这个通用的。

可以看到,npm install被调用了两次,这是一个重复的任务。

是否可以在两个工作之间共享结果npm install?最终目标是只安装一次软件包。

0 投票
1 回答
87 浏览

flask - What does this code in .cicleci/config.yml mean?

My coworkers are trying to write unit test code and test API by using Circleci2.0 and Flake8. But I don't understand how I should write test code because this line pytest --flake8 in the below code does not mean.

What does this code in .cicleci/config.yml mean ?

Do we need to write test code in another xx.py file and execute this .py file like pytest xx.py?

If we should, does this line pytest --flake8 mean execution of xx.py file in another directly or the same directly even though this code dose not mention file path which execute test code file ?

0 投票
1 回答
793 浏览

php - Cache PHP extensions installed with Pecl on CircleCI

We are using CircleCI as build server for php symfony application and we require the mongodb library with composer, which is dependent on the mongodb extension, that we install with pecl. So we have the following steps in our build:

This works fine, but the PECL mongo db extension takes half of our build time.

Is there a way to store the installed PECL extensions into the CircleCI cache?

I have tried the following:

But this doesn't work - mongodb is downloaded again by PECL. What are the directories that I should try to cache in this case?

0 投票
3 回答
12895 浏览

circleci - CircleCi 2.0 在子目录中使用项目

我正在尝试将我的springboot教程项目与 CircleCi 集成。

我的项目位于 Github 存储库的子目录中,我从 CircleCi 收到以下错误。

目标需要一个项目来执行,但这个目录(/home/circleci/recipe)中没有 POM。请确认您从正确的目录调用了 Maven。

我不知道如何告诉 circle-ci 我的项目在子目录中。我尝试了几件事,以及尝试cd在“食谱”中进行尝试,但它不起作用甚至感觉不对。

这是我的项目的结构:

这是我的config.yml

0 投票
0 回答
122 浏览

junit - 信条输出格式

我正在自动化测试我的代码的过程,并正在使用 credo 来测试我的 elixir 代码的格式。我想输出结果,因为我使用的是 CircleCI,所以我需要将结果保存在 Cucumber JSON 或 JUnit XML 中。如何配置 credo 以输出其中之一,我目前正在使用:

正如预期的那样会给我正常的json。是否可以将 credo 配置为输出我想要的内容或将 json 转换为另一种格式?

谢谢

0 投票
1 回答
5558 浏览

babeljs - 为什么 Babel 会抛出 Unknown option: ... Children?

尝试在 CircleCi 上运行构建,但测试失败。同样的东西在我的本地也很完美。我的 .babelrc 配置:

我从 circleCI 得到的错误:

任何想法,因为相同的配置正在另一个项目中工作

0 投票
1 回答
517 浏览

android - CircleCI 构建失败,因为 Google-Services.json 不存在

这是我在使用 Android 我的应用程序设置 CircleCI 时遇到的错误。我认为这是因为我的仓库中没有 Google-Services.json 文件!但出于安全考虑,我不能上传它。解决此问题的最佳替代方法是什么?

0 投票
1 回答
61 浏览

amazon-web-services - 使用 circleci 部署任务定义和代码

我想要一个 ECS 任务定义和我的项目我的源代码控制。然后我希望 CircleCi 将任务定义部署到我的 aws 帐户,然后使用新的任务定义部署项目。

我知道 circleci 有 AWS 代码部署,这使得部署项目变得容易,但是否可以在那里部署任务定义或任何其他基础设施?

谢谢。

0 投票
1 回答
688 浏览

php - 无法阻止 Laravel 限制 circleci 上的功能测试

使用 Laravel 5.6

我不想使用withoutMiddleware- 我正在尝试覆盖默认油门设置,但似乎没有任何效果。

更改油门号似乎完全没有任何作用。

错误总是:

它在本地运行,但在 circleci 上,没有雪茄 - 尝试太多。

几乎似乎只有 circlci 忽略了与节流相关的任何设置并做自己该死的事情。

我试图改变一切——但唯一能阻止它发生的是withoutMiddleware,它还有其他我不想要的副作用。

0 投票
1 回答
351 浏览

laravel - CircleCI YAML 配置失败

我创建了一个 CircleCI 配置,它将针对我的 laravel 应用程序运行我的 PHPUnit 测试,并且可以 100% 运行,但是我现在正在尝试将工作流添加到 SSH 并将我的应用程序部署到 AWS EC2 服务器,我收到以下错误:

您的配置文件有错误,可能无法正确运行:发现 2 个架构违规 未找到所需的密钥 [jobs] 未找到所需的密钥 [版本]

但是我看不到我的 CircleCI 配置文件有问题,我在某处犯了错误吗?

任何帮助表示赞赏,谢谢!