Skip to content

Commit

Permalink
build(lando): add PHP 8.2 local testing environment
Browse files Browse the repository at this point in the history
  • Loading branch information
SlimDeluxe committed Dec 2, 2023
1 parent 59bec5a commit b793b6e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
27 changes: 27 additions & 0 deletions env/php-8.2/.lando.dist.yml
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"
24 changes: 24 additions & 0 deletions env/php-8.2/composer.json
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/"
}
}
}

0 comments on commit b793b6e

Please sign in to comment.