Giter VIP home page Giter VIP logo

blt-ddev's Introduction

Acquia BLT integration with ddev

This is an Acquia BLT plugin providing ddev integration.

This plugin is community-created and community-supported. Acquia does not provide any direct support for this software or provide any warranty as to its stability.

Quickstart

To create a new BLT project with ddev integration for local development, run the following commands, replacing mysite with your desired BLT project name:

composer create-project --no-interaction --no-install drupal/recommended-project mysite
cd mysite
sudo sed -i '' -e "s|web/|docroot/|g" composer.json
composer require --dev lcatlett/blt-ddev
blt recipes:ddev --no-interaction
ddev blt setup

Installation and usage

To use this plugin on your existing BLT 12 project, you must be using ddev v1.10.0 or newer.

You can check your version of ddev with ddev version.

In your project, require the plugin with Composer:

composer require --dev lcatlett/blt-ddev

Initialize the ddev integration by calling recipes:ddev, which is a custom BLT command provided by this plugin:

blt recipes:ddev

Running blt recipes:ddev will initialize a .ddev folder as well as BLT configuration in the /blt directory of your project.

The plugin adds a custom ddev command in the web container which makes the ddev blt command available. All blt commands should be prefixed with ddev to ensure it is executed within the docker container, for example:

ddev blt setup

ddev blt tests

ddev blt sync

ddev blt sync --environment=ci

BLT Enhancements

Behat configuration

BLT makes some assumptions about the local development environment which informs behat testing configuration. This plugin extends the default blt behat command to run behat tests in a container as a dedicated service via the ddev blt behat command.

blt-ddev's People

Contributors

lcatlett avatar leymannx avatar mikemadison13 avatar thegbomb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

blt-ddev's Issues

Behat error: No Drupal installation found

Hello! I'm excited to try out this project. I have an existing site that uses ddev, however we've never been able to use blt tests because the ddev containers do not have Chrome. So this seems like just what we need.

However, after adding this library via Composer and tweaking the config files, when I run ddev blt tests I am getting the error: [Drupal\Driver\Exception\BootstrapException] No Drupal installation found at /home/brockfanning/repos/foia-api/docroot. I suspect I have messed something up in the config and I was hoping I could get some help. If there is any particular config or snippet that I should paste in, let me know.

Not compatible with acquia/blt-behat

In BLT 12, now that the Behat support has been moved into the acquia/blt-behat plug-in, when doing

blt recipes:ddev --no-interaction

results in the error

PHP Fatal error: Uncaught Error: Class 'Acquia\Blt\Robo\Commands\Tests\BehatCommand' not found in /home/gregg/drupalsites/brc-local/vendor/lcatlett/blt-ddev/src/Blt/Plugin/Commands/BehatDdevCommand.php:7

It appears the BehatCommand has moved from vendor/acquia/blt/src/Robo/Commands/Tests/BehatCommand.php to vendor/acquia/blt-behat/src/Blt/Plugin/Commands/BehatTestCommand.php

Compatibility with BLT 13.7

Hit there: seems like this package isn't compatible with BLT 13 and above:

"conflict": {
"acquia/blt": "<=12.5.1"
}

Is there any likelihood of this being resolved in the near term? Cheers.

Drupal install freezes

Hi, thanks for creating this plugin, it's awesome.

It does enable blt to be used on ddev, but for some reason when I run ddev blt setup, it gets to a point where it freezes.

This is what I see when I run it when the -vvv flag:

[notice] Starting Drupal installation. This takes a while. [39.26 sec, 3.96 MB]
[debug] Calling install_drupal(Composer\Autoload\ClassLoader, array) [39.28 sec, 4.03 MB]

No errors are triggered after that, it just remains in there.

This is probably not an issue with the plugin, but I just wanted to put the question here in case you your somebody else has had a similar problem.

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.