From d724356536dafbab79096237ce11bdae4f52851f Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Fri, 26 Apr 2024 02:31:20 +0200 Subject: [PATCH] Adding some of the most common php tooling - phpunit for running unit tests, paratest for running the same unitests in parallel, and php-cs-fixer for enforcing formatting. php-cs-fixer could be considered to be promoted to being a linter as soon as I work out how to parse its output and feed it through a post-processor like phpstan is --- tools/paratest/plugin.yaml | 11 +++++++++++ tools/php-cs-fixer/plugin.yaml | 11 +++++++++++ tools/phpunit/plugin.yaml | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 tools/paratest/plugin.yaml create mode 100644 tools/php-cs-fixer/plugin.yaml create mode 100644 tools/phpunit/plugin.yaml diff --git a/tools/paratest/plugin.yaml b/tools/paratest/plugin.yaml new file mode 100644 index 000000000..f74a68f24 --- /dev/null +++ b/tools/paratest/plugin.yaml @@ -0,0 +1,11 @@ +version: 0.1 +tools: + definitions: + - name: paratest + runtime: php + package: brianium/paratest + known_good_version: 7.4.3 + shims: [paratest] + environment: + - name: PATH + list: ["${tool}/vendor/bin"] diff --git a/tools/php-cs-fixer/plugin.yaml b/tools/php-cs-fixer/plugin.yaml new file mode 100644 index 000000000..ab14f9dcc --- /dev/null +++ b/tools/php-cs-fixer/plugin.yaml @@ -0,0 +1,11 @@ +version: 0.1 +tools: + definitions: + - name: php-cs-fixer + runtime: php + package: friendsofphp/php-cs-fixer + known_good_version: 3.54.0 + shims: [php-cs-fixer] + environment: + - name: PATH + list: ["${tool}/vendor/bin"] diff --git a/tools/phpunit/plugin.yaml b/tools/phpunit/plugin.yaml new file mode 100644 index 000000000..a44475700 --- /dev/null +++ b/tools/phpunit/plugin.yaml @@ -0,0 +1,11 @@ +version: 0.1 +tools: + definitions: + - name: phpunit + runtime: php + package: phpunit/phpunit + known_good_version: 11.1.3 + shims: [phpunit] + environment: + - name: PATH + list: ["${tool}/vendor/bin"]