7
我想設置Bamboo CI Server。我創建了兩個階段:Bamboo CI Server - 如何配置PHPUnit測試
- 階段1:使用代碼簽出的「代碼簽出」。
- 階段2:通過phpunit進行測試的「PHPunit」。
階段1是好的,但在階段2我有一個錯誤。在生成日誌,我有:
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測試的報告/ phpunit.xml --coverage-HTML測試報告/ coverage/html --bootstrap /var/www/html/ccp/core/tests/bootstrap.php --no-configuration/var/www/html/ccp/core/tests),一切正常(有OK響應)。
這是怎麼回事?
上生成的總覽畫面有兩種錯誤:
(Job results summary) No failed tests found, a possible compilation error occurred.
(Error summary) Could not find test result reports in the /home/bamboo/bamboo_home/xml-data/build-dir/CCPCI-UTB-JOB1 directory.
我會感謝任何幫助。如發表在OP評論
我已經解決了我的問題。我不得不將環境變量(JVM_SUPPORT_RECOMMENDED_ARGS =「 - Datlassian.bamboo.builder.successMarker ='OK'」)添加到文件setenv.sh中。一切運作良好。 – 2014-10-13 12:36:17
用這些信息回答你自己的問題(和漂亮的格式),並接受你自己的答案,將問題標記爲已解決。它可能會讓你等到明天才能真正接受它。 – Will 2016-07-16 13:33:27
這個問題仍然列爲未解決。我們可以解決這個問題嗎?如果威爾的建議太麻煩了:現在就像點擊一個按鈕一樣簡單...... – 2017-04-14 20:52:03