Skip to content

Commit 4098af1

Browse files
committedNov 6, 2023
Add Lando config
1 parent aa4fed8 commit 4098af1

File tree

6 files changed

+95
-0
lines changed

6 files changed

+95
-0
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
composer.phar
22
/vendor/
33
composer.lock
4+
.bash_history

‎.lando.env

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Lando specific - uses user home directory to store Composer cache and other stuff
2+
# Helps to re-use Composer cache between projects.
3+
COMPOSER_HOME=/user/.composer
4+
# https://xdebug.org/docs/step_debug
5+
# https://xdebug.org/docs/step_debug#client_host
6+
# https://docs.lando.dev/config/php.html#configuration
7+
PHP_IDE_CONFIG=serverName=drupalauth.lndo.site
8+
# Ignore commands starting with space and duplicates.
9+
HISTCONTROL=ignoreboth
10+
HOME=/app

‎.lando.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: drupalauth
2+
3+
services:
4+
php74:
5+
type: php:7.4
6+
via: cli
7+
xdebug: "off"
8+
composer_version: 2
9+
php80:
10+
type: php:8.0
11+
via: cli
12+
xdebug: "off"
13+
composer_version: 2
14+
php81:
15+
type: php:8.1
16+
via: cli
17+
xdebug: "off"
18+
composer_version: 2
19+
php82:
20+
type: php:8.2
21+
via: cli
22+
xdebug: "off"
23+
composer_version: 2
24+
25+
26+
27+
28+
env_file:
29+
- .lando.env
30+
31+
tooling:
32+
style-lint:
33+
cmd: ./scripts/style-lint.sh
34+
service: :service
35+
options:
36+
service:
37+
default: php74
38+
describe: Run phpcs in different service
39+
alias:
40+
- s
41+
style-fix:
42+
cmd: ./scripts/style-fix.sh
43+
service: :service
44+
options:
45+
service:
46+
default: php74
47+
describe: Run phpcs in different service
48+
alias:
49+
- s
50+
phpunit:
51+
cmd: ./scripts/phpunit.sh
52+
service: :service
53+
options:
54+
service:
55+
default: php74
56+
describe: Run phpunit in different service
57+
alias:
58+
- s

‎scripts/phpunit.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
php -v
4+
rm -rf ./vendor composer.lock
5+
composer install
6+
7+
./vendor/bin/phpunit

‎scripts/style-fix.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf ./vendor composer.lock
4+
composer install
5+
6+
./vendor/bin/phpcbf

‎scripts/style-lint.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf ./vendor composer.lock
4+
composer install
5+
6+
./vendor/bin/phpcs
7+
8+
#lando phpunit -s php80
9+
#lando style-lint -s php80
10+
#lando phpunit -s php81
11+
#lando style-lint -s php81
12+
#lando phpunit -s php82
13+
#lando style-lint -s php82

0 commit comments

Comments
 (0)
Please sign in to comment.