A dockerfile for bitbucket pipelines.
image: cnizzardini/bitbucket-pipelines-php74
pipelines:
default:
- step:
services:
- mysql
script:
- composer install --no-interaction --no-progress --prefer-dist
- ./vendor/phpunit/phpunit/phpunit -v --coverage-text --colors=never --stderr
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: test
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: root
You will need access to the dockerhub repository, so feel free to clone and build your own.
- Clone this repository
- Make edits
docker build . -t cnizzardini/bitbucket-pipelines-php74:{tag}
docker push cnizzardini/bitbucket-pipelines-php74:{tag}