-
Notifications
You must be signed in to change notification settings - Fork 2
/
.lando.travis.yml
64 lines (55 loc) · 2.11 KB
/
.lando.travis.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
# Change this name to something that makes sense for your project
name: contentacmsplatformsh
# Use the recipe appropriate for your application.
recipe: drupal8
# Configure the D8 recipe to match up closer to a vanilla platform.sh stack
config:
# Lando defaults to Apache. Switch to nginx to match Platform.sh.
via: nginx
# Set the webroot to match your .platform.app.yaml.
webroot: web
# Set this to match the version in your .platform.app.yaml.
php: 7.1
# Lando defaults to the latest MySQL release, but Platform.sh uses MariaDB.
# Specify the version to match what's in services.yaml.
database: mariadb:10.1
# The following additional build step will install the Platform CLI
# in the application container and auto-run `composer install`
services:
appserver:
build:
- "mkdir /var/www/.platformsh && mkdir /var/www/.platformsh/bin"
- "curl -fsSL -o /var/www/.platformsh/bin/platform https://github.com/platformsh/platformsh-cli/releases/download/v3.33.6/platform.phar"
- "chmod ug+x /var/www/.platformsh/bin/platform"
- "cd $LANDO_MOUNT && composer install"
overrides:
services:
environment:
PLATFORMSH_CLI_TOKEN: $PLATFORMSH_CLI_TOKEN
PLATFORMSH_PROJECT_ID: $PLATFORMSH_PROJECT_ID
BEHAT_PARAMS: '{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://nginx/"}, "Drupal\\DrupalExtension" : {"drush" : { "root": "/app/web" }}}}'
# Ensure `composer install` also happens every time you start your site
events:
post-db-import:
- appserver: "cd $LANDO_MOUNT && composer install"
# The following entry creates a `lando platform` command that will run
# any Platform CLI command from inside the container if desired.
tooling:
platform:
service: appserver
description: Run Platform CLI commands
cmd: /var/www/.platformsh/bin/platform
phplint:
service: appserver
cmd: /app/vendor/bin/phplint
phpcs:
service: appserver
cmd: /app/vendor/bin/phpcs
phpunit:
service: appserver
cmd: /app/vendor/bin/phpunit
behat:
service: appserver
cmd: /app/vendor/bin/behat
# git:
# service: appserver