竹CI服务器-如何配置PHPUnit测试
我想设置竹CI服务器。我创建了两个阶段:竹CI服务器-如何配置PHPUnit测试,php,continuous-integration,phpunit,bamboo,Php,Continuous Integration,Phpunit,Bamboo,我想设置竹CI服务器。我创建了两个阶段: 第1阶段:“代码签出”与代码签出 第2阶段:“PHPunit”,通过PHPunit进行测试 第一阶段可以,但是第二阶段我有一个错误。在生成日志中,我有: Starting task 'PHPUnit Testing' of type 'com.atlassian.bamboo.plugins.php:task.builder.phpunit' 12-paź-2014 10:45:49 Beginning to execute external
- 第1阶段:“代码签出”与代码签出
- 第2阶段:“PHPunit”,通过PHPunit进行测试
Starting task 'PHPUnit Testing' of type 'com.atlassian.bamboo.plugins.php:task.builder.phpunit'
12-paź-2014 10:45:49
Beginning to execute external process for build 'CCP - CI - Unit Testing Build - Default Job #4 (CCPCI-UTB-JOB1-4)'
... running command line:
/usr/local/bin/phpunit --log-junit test-reports/phpunit.xml --coverage-html test-reports/coverage/html --bootstrap /var/www/html/ccp/core/tests/bootstrap.php --no-configuration /var/www/html/ccp/core/tests
... in: /home/bamboo/bamboo_home/xml-data/build-dir/CCPCI-UTB-JOB1
12-paź-2014 10:45:49 X-Powered-By: PHP/5.5.11
12-paź-2014 10:45:49 Content-type: text/html
12-paź-2014 10:45:49
12-paź-2014 10:45:49 Failing task since text 'OK' was not found in last 250 log entries
12-paź-2014 10:45:49 Parsing test results...
12-paź-2014 10:45:49 Finished task 'PHPUnit Testing'
如果在服务器终端中执行phpunit命令(/usr/local/bin/phpunit--log junit test reports/phpunit.xml--coverage html test reports/coverage/html--bootstrap/var/www/html/ccp/core/tests/bootstrap.php--no configuration/var/www/html/ccp/core/tests),一切都是正确的(有OK响应)
这个怎么了
在build的overview屏幕上有两个错误:
(作业结果摘要)未找到失败的测试,可能发生编译错误。
(错误摘要)在/home/bambol/bambol\u home/xml data/build dir/CCPCI-UTB-JOB1目录中找不到测试结果报告。
如有任何帮助,我将不胜感激。OP在评论中发布的解决方案: 我已经解决了我的问题 我必须在文件
setenv.sh
中添加一个环境变量:
JVM_SUPPORT_RECOMMENDED_ARGS="-Datlassian.bamboo.builder.successMarker='OK'"
一切都很顺利
我已经解决了我的问题。我必须在setenv.sh文件中添加一个环境变量(JVM_SUPPORT_RECOMMENDED_ARGS=“-Datlassian.bambol.builder.successMarker='OK')。一切都很好。用这些信息(和漂亮的格式)回答你自己的问题,并接受你自己的答案,将问题标记为已解决。这可能会让你等到明天才真正接受。这个问题仍然没有解决。我们有没有可能解决这个问题?如果威尔的建议太麻烦的话:现在只需点击一个按钮。。。