I'm trying to setup PHP unit testing for our PHP application using MariaDB as a "service".
Now, as soon as I declare that my step should use the service defined in "definitions" section the pipeline fails with the message "The step provided was invalid". Whenever I remove the service from the step it works.
According to https://bitbucket-pipelines.atlassian.io/validator my bitbucket-pipelines.yml is valid.
What am I doing wrong? What does the error mean? How can I debug that error?
I currently use the following bitbucket-pipelines.yml for testing:
clone:
depth: 1
pipelines:
default:
- step:
image: php:7.0-apache
script:
- ls
services:
- maria
definitions:
services:
maria:
image: mariadb
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_ROOT_PASSWORD: ''
MYSQL_DATABASE: 'dev'