mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 18:56:14 +01:00

[TASK] Drop the .phar suffix from the tools (#204)

PhpStorm by default indexes `*.phar` files. For our current set of
tools, we do not want this. (This keeps PhpStorm from complaining
about multiple versions of the same class.)

Also mark the tools as binary for git.
This commit is contained in:
Oliver Klee 2021-02-24 12:02:56 +01:00 committed by GitHub
parent 9cb2c462d8
commit ef38d7d84b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 12 additions and 12 deletions

2
.gitattributes vendored
View file

@ -13,4 +13,4 @@
/Tests/ export-ignore /Tests/ export-ignore
/codeception.yml export-ignore /codeception.yml export-ignore
/phpcs.xml export-ignore /phpcs.xml export-ignore
/tools/ export-ignore /tools/ export-ignore binary

View file

@ -77,7 +77,7 @@
"ci": [ "ci": [
"@ci:static" "@ci:static"
], ],
"ci:composer:normalize": "php ./tools/composer-normalize.phar --dry-run", "ci:composer:normalize": "php ./tools/composer-normalize --dry-run",
"ci:dynamic": [ "ci:dynamic": [
"@ci:tests" "@ci:tests"
], ],
@ -86,10 +86,10 @@
"@ci:php:codestyle", "@ci:php:codestyle",
"@ci:php:sniff" "@ci:php:sniff"
], ],
"ci:php:codestyle": "php ./tools/php-cs-fixer.phar fix --config .php_cs.php -v --dry-run --using-cache false --diff --diff-format=udiff", "ci:php:codestyle": "php ./tools/php-cs-fixer fix --config .php_cs.php -v --dry-run --using-cache false --diff --diff-format=udiff",
"ci:php:copypaste": "php ./tools/phpcpd.phar Classes Configuration Tests", "ci:php:copypaste": "php ./tools/phpcpd Classes Configuration Tests",
"ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l", "ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
"ci:php:sniff": "php ./tools/phpcs.phar Classes Configuration Tests", "ci:php:sniff": "php ./tools/phpcs Classes Configuration Tests",
"ci:static": [ "ci:static": [
"@ci:php:lint", "@ci:php:lint",
"@ci:php:sniff", "@ci:php:sniff",
@ -101,7 +101,7 @@
], ],
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';", "ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';",
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit", "ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
"ci:ts:lint": "php ./tools/typo3-typoscript-lint.phar -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript", "ci:ts:lint": "php ./tools/typo3-typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
"ci:yaml:lint": "find . ! -path '*.Build/*' -name '*.yml' | xargs .Build/vendor/bin/yaml-lint", "ci:yaml:lint": "find . ! -path '*.Build/*' -name '*.yml' | xargs .Build/vendor/bin/yaml-lint",
"fix:php": [ "fix:php": [
"@fix:php:cs", "@fix:php:cs",

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive"> <phive xmlns="https://phar.io/phive">
<phar name="phar-io/phive" version="^0.14.5" location="./tools/phive.phar" copy="true" installed="0.14.5"/> <phar name="phar-io/phive" version="^0.14.5" location="./tools/phive" copy="true" installed="0.14.5"/>
<phar name="phpcpd" version="^6.0.3" location="./tools/phpcpd.phar" copy="true" installed="6.0.3"/> <phar name="phpcpd" version="^6.0.3" location="./tools/phpcpd" copy="true" installed="6.0.3"/>
<phar name="phpcs" version="^3.5.8" location="./tools/phpcs.phar" copy="true" installed="3.5.8"/> <phar name="phpcs" version="^3.5.8" location="./tools/phpcs" copy="true" installed="3.5.8"/>
<phar name="ergebnis/composer-normalize" version="^2.13.2" location="./tools/composer-normalize.phar" copy="true" installed="2.13.2"/> <phar name="ergebnis/composer-normalize" version="^2.13.2" location="./tools/composer-normalize" copy="true" installed="2.13.2"/>
<phar name="friendsofphp/php-cs-fixer" version="^2.18.2" location="./tools/php-cs-fixer.phar" copy="true" installed="2.18.2"/> <phar name="friendsofphp/php-cs-fixer" version="^2.18.2" location="./tools/php-cs-fixer" copy="true" installed="2.18.2"/>
<phar name="martin-helmich/typo3-typoscript-lint" version="^2.4.1" location="./tools/typo3-typoscript-lint.phar" copy="true" installed="2.4.1"/> <phar name="martin-helmich/typo3-typoscript-lint" version="^2.4.1" location="./tools/typo3-typoscript-lint" copy="true" installed="2.4.1"/>
</phive> </phive>