From cd06f6cea7781286c769dc4129ed672bb29c316f Mon Sep 17 00:00:00 2001 From: Randy Fay Date: Thu, 23 May 2024 08:54:28 -0600 Subject: [PATCH] Final config for use with DDEV v1.23.1, replaces #30, replaces #23 (#31) * DDEV 1.23 compatiblity, Drupal core yarn/sqlite compatibility. Docs. * Need to use sqlite now b/c no mysql. From justafish/ddev-drupal-core-dev/pull/27/files. * Remove install of sqlite3 and make dependent on DDEV v1.23.1 * Run tests now that sqlite 3.45 in DDEV release * Dockerfile is gone, don't try to install it * add back in omit_containers, can remove farther down the line * Remove --verbose from phpunit command, not supported in phpunit 10 --------- Co-authored-by: Simon Hobbs --- README.md | 3 +-- commands/web/phpunit | 2 +- config.ddev-drupal-core-dev.yaml | 11 +++++++++++ core-dev/phpunit-chrome.xml | 3 ++- core-dev/phpunit-firefox.xml | 3 ++- install.yaml | 3 +-- tests/test.bats | 2 +- web-build/Dockerfile | 17 ----------------- 8 files changed, 19 insertions(+), 25 deletions(-) create mode 100644 config.ddev-drupal-core-dev.yaml delete mode 100644 web-build/Dockerfile diff --git a/README.md b/README.md index 18e37d5..2721e7e 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,8 @@ We're in #ddev-for-core-dev on [Drupal Slack](https://www.drupal.org/community/c ``` git clone https://git.drupalcode.org/project/drupal.git drupal cd drupal -ddev config --project-type=drupal10 +ddev config --omit-containers=db --disable-settings-management ddev start -ddev corepack enable ddev get justafish/ddev-drupal-core-dev ddev restart ddev composer install diff --git a/commands/web/phpunit b/commands/web/phpunit index 2e6a77c..0e83730 100644 --- a/commands/web/phpunit +++ b/commands/web/phpunit @@ -11,4 +11,4 @@ if ! command -v phpunit >/dev/null; then fi echo "Clearing old webdriver sessions" curl -f -s http://chrome:4444/status | jq -r '.value.nodes[].slots[].session.sessionId' | while read -r session; do if [ "$session" != "null" ]; then curl -X DELETE "http://chrome:4444/session/$session"; fi; done -phpunit -c core --verbose "$@" +phpunit -c core "$@" diff --git a/config.ddev-drupal-core-dev.yaml b/config.ddev-drupal-core-dev.yaml new file mode 100644 index 0000000..ee664a2 --- /dev/null +++ b/config.ddev-drupal-core-dev.yaml @@ -0,0 +1,11 @@ +# #ddev-generated +# This file is placed by the justafish/ddev-drupal-core-dev addon. + +webimage_extra_packages: ["chromium-driver"] +ddev_version_constraint: '>=v1.23.1' +omit_containers: ["db"] +upload_dirs: +# The install technique tries to remove all of sites/default/files +# but with DDEV + mutagen that isn't possible. +# so just redirect the upload_dirs. + - .ddev/tmp diff --git a/core-dev/phpunit-chrome.xml b/core-dev/phpunit-chrome.xml index fc02f8e..a4888bd 100644 --- a/core-dev/phpunit-chrome.xml +++ b/core-dev/phpunit-chrome.xml @@ -23,7 +23,8 @@ - + + - + +