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

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

  • Этап 1: «Проверка кода» с проверкой кода.
  • Этап 2: «PHPunit» с тестированием через phpunit.

Стадия 1 в порядке, но на стадии 2 у меня ошибка. В Build Log у меня есть:

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 / покрытие / html —bootstrap / var / www / html /ccp/core/tests/bootstrap.php —no-configuration / var / www / html / ccp / core / tests), все правильно (ответ ОК есть).

Что с этим не так?

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

  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.

Буду благодарен за любую помощь.

7

Решение

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

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

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

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

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

0

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector