-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.lando.yml
44 lines (43 loc) · 1.47 KB
/
.lando.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
name: bea-sanitize-filename
recipe: wordpress
config:
webroot: wordpress
php: '7.2'
services:
chromedriver:
type: compose
services:
image: robcherry/docker-chromedriver:latest
expose:
- "4444"
environment:
CHROMEDRIVER_WHITELISTED_IPS: ""
CHROMEDRIVER_URL_BASE: "/wd/hub"
CHROMEDRIVER_EXTRA_ARGS: "--ignore-certificate-errors --reduce-security-for-testing --enable-features=NetworkService"
security_opt:
- seccomp:unconfined
command: ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
appserver:
run_as_root:
- "cd /usr/local/bin && wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip && unzip -o BrowserStackLocal-linux-x64.zip && chmod +x BrowserStackLocal && rm BrowserStackLocal-linux-x64.zip"
- "mysql -u root -h database -e 'CREATE DATABASE IF NOT EXISTS wpTests;'"
- "mysql -u root -h database -e 'GRANT ALL PRIVILEGES ON *.* TO 'wordpress';'"
- "mysql -u root -h database -e 'FLUSH PRIVILEGES;'"
tooling:
# Runs composer install and a custom php script after your app starts
setup-tests:
service: appserver
cmd: "bin/lando-start.sh"
test:
service: appserver
cmd: composer test
description: Run our tests
test-local:
service: appserver
cmd: composer test-local
description: Run our tests locally
bash:
service: appserver
launch-browserstack:
service: appserver
cmd: ./bin/lando-browserstack.sh