Last active
November 16, 2019 17:52
-
-
Save jcandan/ca29ccbfb1697db5befe201ec3173275 to your computer and use it in GitHub Desktop.
Lando for Drupal with Unit, Kernel, Functional, FunctionJavascript, and Behat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: myproject | |
recipe: drupal8 | |
config: | |
webroot: web | |
debug: false | |
services: | |
appserver: | |
type: php:7.3 | |
run: | |
- cd $LANDO_MOUNT && composer run copy-behat-yml | |
- /bin/cp /app/web/core/phpunit.xml.dist /app/web/core/phpunit.xml | |
overrides: | |
environment: | |
MINK_DRIVER_ARGS: '["chrome", null, "http://chromedriver:4444/wd/hub"]' | |
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http://chromedriver:4444/wd/hub"]' | |
MINK_DRIVER_CLASS: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' | |
BROWSERTEST_OUTPUT_DIRECTORY: '/app/web/sites/default/files/phpunit' | |
SIMPLETEST_DB: 'sqlite://localhost/sites/default/files/db.sqlite' | |
SIMPLETEST_BASE_URL: 'https://myproject.lndo.site/' | |
PHP_IDE_CONFIG: "serverName=appserver" | |
chromedriver: | |
type: compose | |
services: | |
image: robcherry/docker-chromedriver:latest | |
volumes: | |
- /dev/shm:/dev/shm # See https://github.com/elgalu/docker-selenium/issues/20#issuecomment-325090454 | |
expose: | |
- "4444" | |
environment: | |
CHROMEDRIVER_WHITELISTED_IPS: "" | |
CHROMEDRIVER_URL_BASE: "/wd/hub" | |
security_opt: | |
- seccomp:unconfined | |
command: ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"] | |
tooling: | |
behat: | |
service: appserver | |
cmd: /app/vendor/bin/behat -c /app/tests/behat.yml | |
phpunit: | |
service: appserver | |
cmd: /app/vendor/bin/phpunit --configuration /app/web/core/phpunit.xml | |
xdebug-on: | |
service: appserver | |
description: "Enable xdebug without the need to rebuild Lando." | |
cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload" | |
user: root | |
xdebug-off: | |
service: appserver | |
description: "Disable xdebug without the need to rebuild Lando." | |
cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload" | |
user: root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment