-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(lando): add PHP 8.2 local testing environment
- Loading branch information
1 parent
59bec5a
commit b793b6e
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: gettext-context-php-8.2 | ||
services: | ||
appserver: | ||
type: php:custom | ||
via: cli | ||
app_mount: delegated | ||
overrides: | ||
image: slimdeluxe/php:8.2 | ||
volumes: | ||
# Mount the project root directory to /app | ||
- "../..:/app" | ||
# Prevent the source vendor directory to be mounted | ||
- /app/vendor | ||
# Make available the source composer.json to be used by the merged one | ||
- "../../composer.json:/usr/local/src/composer.json" | ||
# Use the merged composer.json instead of the source one | ||
- "./composer.json:/app/composer.json" | ||
tooling: | ||
php: | ||
service: appserver | ||
composer: | ||
service: appserver | ||
test: | ||
service: appserver | ||
description: Run tests | ||
# For some reason, "composer test" does not work for this package, so we use the PHPUnit binary directly | ||
cmd: "php vendor/bin/phpunit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"require": { | ||
"wikimedia/composer-merge-plugin": "dev-master" | ||
}, | ||
"extra": { | ||
"merge-plugin": { | ||
"require": [ | ||
"/usr/local/src/composer.json" | ||
], | ||
"merge-scripts": true | ||
} | ||
}, | ||
"config": { | ||
"lock": false, | ||
"allow-plugins": { | ||
"wikimedia/composer-merge-plugin": true | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"DataLinx\\GettextContext\\Tests\\": "tests/" | ||
} | ||
} | ||
} |