mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 04:16:13 +01:00

Add composer normalize phive (#193)

This commit is contained in:
Łukasz Uznański 2021-02-18 10:44:35 +01:00 committed by GitHub
parent c94582767a
commit 3a086c5552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 0 deletions

View file

@ -61,6 +61,7 @@ jobs:
- "php:sniff" - "php:sniff"
- "php:codestyle" - "php:codestyle"
- "php:copypaste" - "php:copypaste"
- "composer:normalize"
php-version: php-version:
- 7.4 - 7.4
code-quality-frontend: code-quality-frontend:

View file

@ -3,6 +3,7 @@ stages:
- build - build
- lint - lint
- codestyle - codestyle
- normalize
- test - test
include: include:
@ -296,3 +297,9 @@ php-copypaste-check:
- php-lint-php7.4 - php-lint-php7.4
script: script:
- composer ci:php:copypaste - composer ci:php:copypaste
composer-normalize:
extends: .default
stage: codestyle
script:
- composer ci:composer:normalize

View file

@ -47,6 +47,10 @@ All of those checks are available in Github Actions and in Gitlab CI.
`composer ci:ts:lint` `composer ci:ts:lint`
### Composer Normalize by [composer-normalize](https://github.com/ergebnis/composer-normalize)
`composer ci:composer:normalize`
### Running unit tests ### Running unit tests
`composer ci:tests:unit` `composer ci:tests:unit`

View file

@ -79,6 +79,7 @@
"ci": [ "ci": [
"@ci:static" "@ci:static"
], ],
"ci:composer:normalize": "php ./tools/composer-normalize.phar --dry-run",
"ci:dynamic": [ "ci:dynamic": [
"@ci:tests" "@ci:tests"
], ],

View file

@ -3,4 +3,5 @@
<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.phar" 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.phar" 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.phar" 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"/>
</phive> </phive>

BIN
tools/composer-normalize.phar Executable file

Binary file not shown.