Skip to content

Commit

Permalink
Move all tooling configuration to config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszuznanski committed Mar 25, 2024
1 parent 28cf48e commit 6f0be0f
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 20 deletions.
19 changes: 10 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@
"ci:coverage:functional": [
"@ci:tests:create-directories",
"@coverage:create-directories",
".Build/bin/phpunit -c ./Configuration/FunctionalTests.xml --whitelist Classes --coverage-php=.Build/coverage/functional.cov Tests/Functional"
".Build/bin/phpunit -c ./config/tests/FunctionalTests.xml --whitelist Classes --coverage-php=.Build/coverage/functional.cov Tests/Functional"
],
"ci:coverage:merge": [
"@coverage:create-directories",
"@php tools/phpcov merge --clover=./.Build/logs/clover.xml ./.Build/coverage/"
],
"ci:coverage:unit": [
"@coverage:create-directories",
".Build/bin/phpunit -c ./Configuration/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit"
".Build/bin/phpunit -c ./config/tests/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit"
],
"ci:json:lint": "find . ! -path '*/.cache/*' ! -path '*/.Build/*' ! -path '*/node_modules/*' -name '*.json' | xargs -r php .Build/bin/jsonlint -q",
"ci:php": [
Expand All @@ -138,10 +138,10 @@
"@ci:php:sniff",
"@ci:php:stan"
],
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff",
"ci:php:cs-fixer": "php-cs-fixer fix --config config/php/.php-cs-fixer.php -v --dry-run --diff",
"ci:php:lint": "find .*.php *.php Classes Configuration Tests -name '*.php' -print0 | xargs -r -0 -n 1 -P 4 php -l",
"ci:php:sniff": "phpcs Classes Configuration Tests",
"ci:php:stan": "phpstan --no-progress",
"ci:php:sniff": "phpcs --standard=config/php/phpcs.xml Classes Configuration Tests",
"ci:php:stan": ".Build/bin/phpstan analyse -c config/php/phpstan.neon --no-progress",
"ci:static": [
"@ci:composer:normalize",
"@ci:json:lint",
Expand All @@ -155,10 +155,10 @@
"ci:tests:create-directories": "mkdir -p .Build/public/typo3temp/var/tests",
"ci:tests:functional": [
"@ci:tests:create-directories",
"find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/bin/phpunit -c ./Configuration/FunctionalTests.xml {}';"
"find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/bin/phpunit -c ./config/tests/FunctionalTests.xml {}';"
],
"ci:tests:unit": ".Build/bin/phpunit -c ./Configuration/UnitTests.xml Tests/Unit",
"ci:ts:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
"ci:ts:lint": "typoscript-lint -c config/typoscript/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
"ci:xliff:lint": "php Build/bin/console lint:xliff Resources/Private/Language",
"ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -regextype egrep -regex '.*.ya?ml$' | xargs -r php ./.Build/bin/yaml-lint",
"coverage:create-directories": "mkdir -p .Build/logs .Build/coverage",
Expand All @@ -175,15 +175,16 @@
"@fix:php:cs",
"@fix:php:sniff"
],
"fix:php:cs": "php-cs-fixer fix --config .php-cs-fixer.php",
"fix:php:cs": "php-cs-fixer fix --config config/.php-cs-fixer.php",
"fix:php:sniff": "phpcbf Classes Configuration Tests",
"phpstan:baseline": ".Build/bin/phpstan --generate-baseline --allow-empty-baseline",
"phpstan:baseline": ".Build/bin/phpstan -c config/php/phpstan-baseline.neon --generate-baseline --allow-empty-baseline",
"prepare-release": [
"rm -rf .Build",
"rm -rf .ddev",
"rm -rf .github",
"rm -rf .gitlab",
"rm -rf Build",
"rm -rf config",
"rm -rf Tests",
"rm -rf tools",
"rm .editorconfig",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions phpstan.neon → config/php/phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
includes:
- phpstan-baseline.neon
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon
- ../../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- ../../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
- ../../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-insecure-calls.neon
- ../../.Build/vendor/spaze/phpstan-disallowed-calls/disallowed-loose-calls.neon

parameters:
parallel:
Expand All @@ -13,17 +13,17 @@ parameters:
level: 3

bootstrapFiles:
- .Build/vendor/autoload.php
- ../../.Build/vendor/autoload.php

paths:
- Classes
- Configuration
- Tests
- ../../Classes
- ../../Configuration
- ../../Tests

scanDirectories:
- Classes
- Configuration
- Tests
- ../../Classes
- ../../Configuration
- ../../Tests

type_coverage:
return_type: 100
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6f0be0f

Please sign in to comment.