forked from gormus/template-drupal8
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.lando.base.yml
65 lines (59 loc) · 1.88 KB
/
.lando.base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Change this name to something that makes sense for your project
name: template-drupal8
# Excludes rarely edited folder / files to win performance.
excludes:
- drush
- scripts
- vendor
- web/core
- web/modules/contrib
- web/profiles/contrib
- web/sites/default/files
- web/themes/contrib
# Use the recipe appropriate for your application.
recipe: platformsh
# Configure the D8 recipe to match up closer to a vanilla platform.sh stack
config:
# Use the recipe appropriate for your application.
id: REPLACE-ME
# Allows for XDebug locally.
variables:
app:
php:
xdebug.remote_connect_back: 1
# The following additional build step will install the Platform CLI
# in the application container and auto-run `composer install`
services:
app:
overrides:
environment:
BEHAT_PARAMS: '{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://nginx/"}, "Drupal\\DrupalExtension" : {"drush" : { "root": "/app/web" }}}}'
# The following entry creates a `lando platform` command that will run
# any Platform CLI command from inside the container if desired.
tooling:
drush:
service: app
cmd: /app/vendor/bin/drush --root=/app/web
phplint:
service: app
cmd: /app/vendor/bin/phplint
phpcs:
service: app
cmd: /app/vendor/bin/phpcs
phpunit:
service: app
cmd: /app/vendor/bin/phpunit
phpstan:
service: app
cmd: /app/vendor/bin/phpstan
behat:
service: app
cmd: /app/vendor/bin/behat
test:
service: app
description: Run Tests Locally
cmd:
- appserver: composer lint
- appserver: /app/vendor/bin/phpunit -c web/core --testsuite=unit --exclude-group Composer web/modules/custom
- appserver: /app/vendor/bin/phpunit -c web/core --testsuite unit --exclude-group Composer web/themes/custom
- appserver: /app/vendor/bin/phpstan analyse web/modules/custom web/themes/custom