从 ant build 进行 Pear 安装
我正在为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,这很简单。这可以通过从作业配置页面执行 shell 命令来完成。
ok this was simple. It could be done by executing shell commands from job configuration page.