docker-example-drupal/build.yaml

58 lines
872 B
YAML
Raw Normal View History

2023-01-21 15:50:45 +00:00
name: docker-example-drupal
language: php
type: drupal-project
web:
type: nginx
database:
type: mariadb
version: 10
php:
version: 8.1-fpm-bullseye
phpcs:
standard: Drupal,DrupalPractice
phpstan:
level: max
2023-03-30 22:19:32 +00:00
drupal:
docroot: web
2023-01-21 15:50:45 +00:00
docker-compose:
services:
database: ~
php:
build:
target: build
dockerfile:
stages:
build:
extends: base
packages:
- git
- libpng-dev
- libzip-dev
- mariadb-client
- unzip
extensions:
install:
- gd
- pdo_mysql
- zip
commands:
- composer validate
- composer install
test:
extends: base
commands:
- parallel-lint src --no-progress
- phpcs -vv
- phpstan
- phpunit --testdox
experimental:
useNewDatabaseCredentials: true