Skip to content

Commit

Permalink
Merge pull request #117 from sitecrafting/feature/lando.rc2
Browse files Browse the repository at this point in the history
Issue #103 - Lando rc.2 dev environment.
  • Loading branch information
acobster authored Mar 21, 2020
2 parents fc4d22e + 8fc2444 commit 11c7cc3
Show file tree
Hide file tree
Showing 6 changed files with 332 additions and 388 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ wp-cli.local.yml
/docs/reference/*.md
/docs/node_modules/


# VS code
.vscode/*
.vscode/*
43 changes: 22 additions & 21 deletions .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ config:
php: '7.0'

services:
node:
type: node:10

appserver:
run_as_root:
# Temporary hack to get a Debian package to install
Expand All @@ -17,35 +20,33 @@ services:
- apt-get install zip

run:
- cd $LANDO_MOUNT && composer install
- cd $LANDO_MOUNT && scripts/setup-wordpress.sh
- composer install
- ./scripts/setup-wordpress.sh

overrides:
services:
environment:
# Pass any non-empty CI envvar from the host into Lando
# This is so we can force non-interactive mode setting up WP
CI: ${CI:-''}
environment:
# Pass any non-empty CI envvar from the host into Lando
# This is so we can force non-interactive mode setting up WP
CI: ${CI:-''}

database:
type: mysql:5.7

gitbook:
type: node:8
type: node:10

run:
- yarn
- /app/scripts/build-docs.sh
- ./scripts/build-docs.sh

cypress:
type: node:8
type: node:10

run:
- yarn cypress install

overrides:
services:
image: 'sitecrafting/lando-cypress-wordpress:0.2.0'
image: 'sitecrafting/lando-cypress-wordpress:latest'

phpmyadmin:
type: phpmyadmin:4.7
Expand All @@ -56,24 +57,24 @@ services:
- appserver

docs:
type: nginx:1.13
type: nginx:1.14
ssl: true
webroot: docs/_book

tooling:
install:
service: appserver
cmd: '/app/scripts/setup-wordpress.sh'
cmd: './scripts/setup-wordpress.sh'
description: 'Install and configure WordPress for custom plugin dev'

install-test-themes:
service: appserver
cmd: 'rsync --verbose --archive --recursive /app/test/themes/ /app/wp/wp-content/themes/'
cmd: 'rsync --verbose --archive --recursive ./test/themes/ ./wp/wp-content/themes/'
description: 'Sync test themes for e2e testing'

debug:
service: appserver
cmd: 'tail -f /app/wp/wp-content/debug.log'
cmd: 'tail -f ./wp/wp-content/debug.log'
description: 'Get real-time WP debug log output'

cypress:
Expand All @@ -88,7 +89,7 @@ tooling:

unit:
service: appserver
cmd: 'vendor/bin/phpunit'
cmd: './vendor/bin/phpunit'
description: 'Run unit tests'

sniff:
Expand All @@ -108,12 +109,12 @@ tooling:

release:
service: appserver
cmd: '/app/scripts/build-release.sh'
cmd: './scripts/build-release.sh'
description: 'Build a downloadable release of the Conifer WordPress plugin'

docs:
service: gitbook
cmd: '/app/scripts/build-docs.sh /app/docs'
cmd: './scripts/build-docs.sh ./docs'
description: 'Build documentation in _book folder using Gitbook'

gitbook:
Expand All @@ -123,11 +124,11 @@ tooling:

events:
pre-docs:
- appserver: 'cd $LANDO_MOUNT && ./scripts/build-api-md.sh'
- appserver: './scripts/build-api-md.sh'

pre-e2e:
- appserver: 'echo installing test themes...'
- appserver: 'rsync --verbose --archive --recursive /app/test/themes/ /app/wp/wp-content/themes/'
- appserver: 'rsync --verbose --archive --recursive ./test/themes/ ./wp/wp-content/themes/'

proxy:
appserver:
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ matrix:
before_install:
- sudo apt-get -y update
- sudo apt-get -y install cgroup-bin curl
- curl -fsSL -o /tmp/lando-latest.deb https://github.com/lando/lando/releases/download/v3.0.0-rc.1/lando-v3.0.0-rc.1.deb
- curl -fsSL -o /tmp/lando-latest.deb https://github.com/lando/lando/releases/download/v3.0.0-aft.2/lando-v3.0.0-aft.2.deb
- sudo dpkg -i /tmp/lando-latest.deb
- lando version
install:
Expand All @@ -67,7 +67,7 @@ matrix:
before_install:
- sudo apt-get -y update
- sudo apt-get -y install cgroup-bin curl
- curl -fsSL -o /tmp/lando-latest.deb https://github.com/lando/lando/releases/download/v3.0.0-rc.1/lando-v3.0.0-rc.1.deb
- curl -fsSL -o /tmp/lando-latest.deb https://github.com/lando/lando/releases/download/v3.0.0-aft.2/lando-v3.0.0-aft.2.deb
- sudo dpkg -i /tmp/lando-latest.deb
- lando version
install:
Expand Down
Loading

0 comments on commit 11c7cc3

Please # to comment.