I maintain this fork of justafish/ddev-drupal-core-dev for my own tinkering. I have diverged parts of it from the upstream, so please be aware that my requirements may differ from yours.
I keep the upstream branch aligned with the upstream along with anything I may be looking to get merged upstream.
Ping @sime in #ddev-for-core-dev on Drupal Slack.
- I'm working on Drupal core: Drupal repo first, tooling is secondary.
- My tooling never makes "git status" dirty.
- My tooling doesn't alter the Drupal application.
# Clone the Drupal core codebase into the current directory.
git clone https://git.drupalcode.org/project/drupal.git drupal
cd drupal
# Configure and start a minimal DDEV project.
# This creates a .ddev folder and DDEV manages its own .gitingore
# Using SQLite, so skip mysql container with --omit-containers=db
ddev config --omit-containers=db --disable-settings-management
ddev start
# Use DDEV to install Drupal's composer dependencies. The host machine does not need PHP.
ddev composer install
# Get the latest release of this plugin. This adds files to the .ddev folder.
ddev get simesy/ddev-drupal-core-dev
ddev restart
# This plugin provides a "drupal" command, see what it offers.
ddev drupal list
# Install (or re-install) Drupal.
ddev drupal install minimal
# Run a small sample of PHPUnit tests.
ddev phpunit core/modules/text/tests/src/Functional/GenericTest.php
# Run Nightwatch tests.
ddev nightwatch --tag core
# Todo, I have temporarily removed a lot of examples here.