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:
Fatal error: Uncaught Error: Call to undefined method App\Kernel::bootstrapEnv() in /opt/atlassian/pipelines/agent/build/bin/phpunit on line 10
Error: Call to undefined method App\Kernel::bootstrapEnv() in /opt/atlassian/pipelines/agent/build/bin/phpunit on line 10
Call Stack:
0.0001 407856 1. {main}() /opt/atlassian/pipelines/agent/build/bin/phpunit:0
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/*'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.