Skip to content

Instantly share code, notes, and snippets.

@sherakama
Last active May 15, 2020 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sherakama/6b26072f4da84cd96466d7cbf6ac0cea to your computer and use it in GitHub Desktop.
Save sherakama/6b26072f4da84cd96466d7cbf6ac0cea to your computer and use it in GitHub Desktop.
LANDO FILE:
----------------------------------------------------
name: cardinalsites
recipe: drupal8
config:
webroot: docroot
php: '7.3'
xdebug: true
services:
appserver:
ssl: true
config:
php: lando/php.ini
overrides:
environment:
BEHAT_PARAMS: >-
{
"extensions" : {
"Behat\\MinkExtension" : {
"base_url" : "https://appserver/"
}
}
}
database:
creds:
user: drupal
password: drupal
database: drupal
healthcheck:
# phpmyadmin:
# type: phpmyadmin
# hosts:
# - database
# Uncomment the below for behat testing.
chromedriver:
type: compose
services:
image: robcherry/docker-chromedriver:latest
expose:
- "4444"
environment:
CHROMEDRIVER_WHITELISTED_IPS: ""
CHROMEDRIVER_URL_BASE: "/wd/hub"
security_opt:
- seccomp:unconfined
command: ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
testresults:
type: nginx
webroot: artifacts
env_file:
- .env
tooling:
# chromedriver:
# service: chromedriver
blt:
service: appserver
cmd: /app/vendor/bin/blt
behat:
service: appserver
cmd: /app/vendor/bin/behat
codeception:
service: appserver
description: Run codeception
cmd:
- /app/vendor/bin/codecept
selenium-server-standalone:
service: appserver
cmd: /app/vendor/bin/selenium-server-standalone
git:
service: appserver
phpcs:
service: appserver
cmd: "/app/vendor/bin/phpcs --standard=Drupal,DrupalPractice"
options:
description: Run phpcs for given folder or file.
CODECEPTION FILE
--------------------------------------------------
paths:
tests: codeception
output: ../artifacts
data: ../artifacts/_data
support: codeception/_support
envs: codeception/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
enabled:
- Codeception\Module\Asserts
- StanfordCaravan\Codeception\Drupal\DrupalBootstrap:
root: '/app/docroot'
server:
HTTP_HOST: 'appserver'
- StanfordCaravan\Codeception\Drupal\DrupalDrush:
drush: '/app/vendor/bin/drush'
options:
uri: 'appserver/'
- PhpBrowser:
url: 'http://appserver'
- WebDriver:
browser: chrome
url: 'http://appserver'
host: 'chromedriver'
capabilities:
browser: "chrome"
version: "*"
unexpectedAlertBehaviour: 'accept'
extra_capabilities:
chromeOptions:
w3c: false
- StanfordCaravan\Codeception\Drupal\DrupalEntity:
cleanup_test: true
cleanup_failed: false
cleanup_suite: true
route_entities:
- node
- taxonomy_term
- media
- StanfordCaravan\Codeception\Drupal\DrupalUser:
drush: '/app/vendor/bin/drush'
default_role: 'authenticated'
driver: 'WebDriver'
cleanup_entities:
- node
- media
- file
cleanup_test: true
cleanup_failed: false
cleanup_suite: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment