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/*'
I am struggling with same issue
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.