Bamboo CI Server – как настроить тестирование PHPUnit

Я хотел бы настроить Bamboo CI Server. Я создал два этапа:

  • Этап 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 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).

Что случилось с этим?

На обзорном экране сборки есть две ошибки:

  1. (Job results summary) No failed tests found, a possible compilation error occurred.
  2. (Error summary) Could not find test result reports in the /home/bamboo/bamboo_home/xml-data/build-dir/CCPCI-UTB-JOB1 directory.

Я был бы признателен за любую помощь.

Решение, опубликованное OP в комментариях:

Я решил свою проблему.

Мне пришлось добавить переменную окружения в файл setenv.sh :

 JVM_SUPPORT_RECOMMENDED_ARGS="-Datlassian.bamboo.builder.su‌​ccessMarker='OK'" 

Все работает очень хорошо.