Gitlab Auto DevOps测试工作失败了Laravel

发布于 2025-02-13 13:48:10 字数 691 浏览 0 评论 0 原文

我正在使用新鲜的Laravel安装(V 9.2),并尝试使用Gitlab Auto DevOps,但测试作业失败了。我不使用任何其他buildpack,gitlab(yaml)或docker文件。 我尝试将变量 buildpack_url 与value heroku/php 一起使用,但是发生以下错误:

+ [[ -n heroku/php ]]
+ title 'Fetching custom buildpack'
+ echo '----->' 'Fetching custom buildpack'
-----> Fetching custom buildpack
+ selected_path=/tmp/buildpacks/custom
+ rm -rf /tmp/buildpacks/custom
+ IFS='#'
+ read -r url commit
+ buildpack-install heroku/php '' custom
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

没有变量 buildpack_url 测试作业找到nodejs并搜索NPM测试脚本,但我想要的只是在测试工作中使用phpunit。有人可以建议如何使用启用自动DEVOPS在测试作业中使用Phpunit?

I am using fresh laravel installation (v 9.2) and trying to use Gitlab Auto devops but test job is failed. I am not using any additional buildpack, gitlab(yaml) or docker files.
I tried to use variable BUILDPACK_URL with value heroku/php but the following error occures:

+ [[ -n heroku/php ]]
+ title 'Fetching custom buildpack'
+ echo '----->' 'Fetching custom buildpack'
-----> Fetching custom buildpack
+ selected_path=/tmp/buildpacks/custom
+ rm -rf /tmp/buildpacks/custom
+ IFS='#'
+ read -r url commit
+ buildpack-install heroku/php '' custom
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

Without the variable BUILDPACK_URL test job found nodejs and searching for npm test script, but all I want is to use phpunit in test job. Could anybody advise how can I use phpunit in test job with auto devops enabled?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独夜无伴 2025-02-20 13:48:10

buildpack_url 必须以格式 Pack

导致此页面列表支持的格式:

类型 格式
相对 < path>
文件系统 file:// [< host>]/< path>
url http [s]://< host>/< path>
docker docker:// [< host>]/< path> [:
CNB Builder Resource urn:cnb:builder [:< id> [@< verion>]]
CNB注册资源 urn:cnb:注册表[:< id> [@< version>]]

请注意, heroku风格的速记 Heroku/php 未列出。

尝试将完整URL使用到 .tar.gz /a>而不是。目前,这是最新版本:

https://github.com/heroku/heroku-buildpack-php/archive/refs/tags/v221.tar.gz

The only documentation about this that I can find says

BUILDPACK_URL must be in a format supported by pack

which leads to this page listing supported formats:

Type Format
Relative <path>
Filesystem file://[<host>]/<path>
URL http[s]://<host>/<path>
Docker docker://[<host>]/<path>[:<tag>⏐@<digest>]
CNB Builder Resource urn:cnb:builder[:<id>[@<version>]]
CNB Registry Resource urn:cnb:registry[:<id>[@<version>]]

Note that Heroku-style shorthands like heroku/php are not listed.

Try using the full URL to a .tar.gz release instead. At the moment, this is the latest version:

https://github.com/heroku/heroku-buildpack-php/archive/refs/tags/v221.tar.gz
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文