Hi,
I am getting the following error while executing phpunit command in pipelines.
Command:
php bin/phpunit --stop-on-failure --filter 'functional/*' && \
And I get this error:
<span>Fatal error: Uncaught Error: Call to undefined method App\Kernel::bootstrapEnv() in /opt/atlassian/pipelines/agent/build/bin/phpunit on line 10</span><span>Error: Call to undefined method App\Kernel::bootstrapEnv() in /opt/atlassian/pipelines/agent/build/bin/phpunit on line 10</span><span>Call Stack:</span><span> 0.0001 407856 1. {main}() /opt/atlassian/pipelines/agent/build/bin/phpunit:0</span>
Has anyone faced that issue?
It looks like there have been some changes in internal docker images used by pipelines
I've got the following services used in my pipeline's script:
services:
- redis
- postgres
- mongo
- rabbit
And here is the most important part of my pipeline script:
composer install --no-interaction && \
sh ./scripts/bootstrap-database.sh -e pipeline && \
sh ./scripts/bootstrap-database.sh -e test && \
php bin/phpunit --stop-on-failure --filter 'functional/*' && \
php bin/phpunit --stop-on-failure --filter 'unit/*'