I just try my hand on pipeline feature and I have some PHPUnit test written for my project. I run those test fine on my local machine. When I choose PHP from Pipeline activation for my project it give me PHPUnit test 5.0.3 machine which is fine for my test, but it give mysqli not found for php.
Is there anyway I can install this using YML configuration? or any other way for my test to run as build steps.
Community moderators have prevented the ability to post new answers.
Hi Sumit,
The default PHP Docker image provided in the example doesn't have MySQL installed and I believe that this is why you're getting the mysqli not found error.
A workaround would be to use an image that has PHP and MySQL both installed such as https://hub.docker.com/r/smartapps/bitbucket-pipelines-php-mysql/. You can follow the link and have a look at the documentation to understand how to use it or by looking at the Docker image to create your own.
Cheers,
Sten
I try the suggested Docker on local Docker setup to ensure it has everything I need, but this docker miss PHPunit. do you know any docker that has both and is from known developer/company. I don't want to use customize docker from anyone else.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.