diff --git a/env/php-8.2/.lando.dist.yml b/env/php-8.2/.lando.dist.yml new file mode 100644 index 0000000..5393cf4 --- /dev/null +++ b/env/php-8.2/.lando.dist.yml @@ -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" diff --git a/env/php-8.2/composer.json b/env/php-8.2/composer.json new file mode 100644 index 0000000..9a1b74f --- /dev/null +++ b/env/php-8.2/composer.json @@ -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/" + } + } +}