Please don’t you know how to set up the correct pipeline for PHPCAKE v5 on https://bitbucket.org/?
File in root: bitbucket-pipelines.yml
image: php:8.1
pipelines:
branches:
master:
- step:
name: Build
caches:
- composer
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- cp .env.example .env
- docker run --name my-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:10.5
- sleep 10 # Allow MariaDB to start
- step:
name: Create Tables
caches:
- composer
script:
- apt-get update && apt-get install -y unzip mysql-client
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- mysql -h your_database_host -u my-mariadb -p my-secret-pw db_test < .install/db_test.sql
- step:
name: Tests
caches:
- composer
script:
- composer run-script stan
- composer run-script test
- composer run-script cs-check
Thank You