我正在使用新的laravel安装(v9.2),并试图使用Gitlab自动开发,但测试工作失败。我没有使用任何额外的buildpack, gitlab(yaml)或docker文件。我试图使用变量BUILDPACK_URL值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)在测试工作?
我能找到的关于这个的唯一文档是
BUILDPACK_URL
必须是pack
支持的格式
指向这个页面列出支持的格式:
<表类>tbody><<tr> 类型 格式 与 <path>
文件系统 file://[<host>]/<path>
URL http[s]://<host>/<path>
Docker docker://[<host>]/<path>[:<tag>⏐@<digest>]
CNB Builder资源 urn:cnb:builder[:<id>[@<version>]]
表类> CNB注册表资源 urn:cnb:registry[:<id>[@<version>]]