从 ant build 进行 Pear 安装

发布于 2024-12-23 16:38:13 字数 461 浏览 2 评论 0原文

我正在为 PHP 项目设置 CI。由于 CI 位于云端,我无法物理访问系统。 我的 ant 目标 phpunit 失败并显示消息 -

Cannot run program "phpunit": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)

我被告知我需要 - “在调用之前添加一个额外的构建步骤来安装 pear 和 php 构建工具。” 我知道我可以做 - “pear install pear.phpunit.de/PHPUnit ”,但我没有对 CI 系统的物理访问权限,并且 pear 安装必须从构建文件进行。

我使用的构建文件可以在 - jenkins-php.org 上找到。 如何添加这个额外的步骤来构建文件(我不了解 php)

I am setting up CI for a PHP project. Since CI is on cloud I don't have physical access to system.
My ant target phpunit fails with message -

Cannot run program "phpunit": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)

And I have been told that I need to - "add an extra build step prior to and invocation to install pear and php build tools."
I know I can do - "pear install pear.phpunit.de/PHPUnit " but I don't have physical access to CI system and pear installation has to take place from build file.

The build file I used is the one which is available at - jenkins-php.org
How do I add this extra step to build file (I am not knowledgeable of php)

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

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

发布评论

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

评论(1

甜宝宝 2024-12-30 16:38:13

好吧,这很简单。这可以通过从作业配置页面执行 shell 命令来完成。

ok this was simple. It could be done by executing shell commands from job configuration page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文