Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 从ant build安装Pear_Php_Ant_Hudson_Jenkins - Fatal编程技术网

Php 从ant build安装Pear

Php 从ant build安装Pear,php,ant,hudson,jenkins,Php,Ant,Hudson,Jenkins,我正在为一个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构建工具之前添加一个额外的构建步

我正在为一个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)

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

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