Met à niveau la configuration de développement du package.
Utilisation des scripts composer.
Showing
.docheader
0 → 100644
.editorconfig
deleted
120000 → 0
.editorconfig
0 → 100644
... | @@ -48,10 +48,22 @@ | ... | @@ -48,10 +48,22 @@ |
"xenolope/quahog": "^2.1" | "xenolope/quahog": "^2.1" | ||
}, | }, | ||
"require-dev": { | "require-dev": { | ||
"phpunit/phpunit": "^7" | "hexmedia/yaml-linter": "^0.2", | ||
"irstea/composer-require-checker-shim": "^2.0", | |||
"irstea/php-cs-fixer-config": "^1.0", | |||
"irstea/phpcpd-shim": "^3.0", | |||
"irstea/phploc-shim": "^4.0", | |||
"irstea/phpmd-config": "^1.0", | |||
"irstea/phpstan-config": "^1.1", | |||
"jakub-onderka/php-parallel-lint": "^1.0", | |||
"pcov/clobber": "^2.0", | |||
"phpunit/phpunit": "^7.0" | |||
}, | }, | ||
"config": { | "config": { | ||
"sort-packages": true | "sort-packages": true, | ||
"platform": { | |||
"php": "7.1.30" | |||
} | |||
}, | }, | ||
"extra": { | "extra": { | ||
"branch-alias": { | "branch-alias": { | ||
... | @@ -65,5 +77,32 @@ | ... | @@ -65,5 +77,32 @@ |
".git*", | ".git*", | ||
".idea" | ".idea" | ||
] | ] | ||
}, | |||
"scripts": { | |||
"post-install-cmd": "@clobber-phpunit", | |||
"post-update-cmd": "@clobber-phpunit", | |||
"clobber-phpunit": "[ -d vendor/phpunit/phpunit ] && vendor/bin/pcov . clobber", | |||
"fix-cs": "vendor/bin/php-cs-fixer fix --verbose", | |||
"phploc": "vendor/bin/phploc src tests --exclude tests/Fixtures/var", | |||
"test": [ | |||
"@test:lint", | |||
"@test:php-cs-fixer", | |||
"@test:phpcpd", | |||
"@test:phpmd", | |||
"@test:phpstan", | |||
"@test:composer-require-checker", | |||
"@test:phpunit" | |||
], | |||
"test:lint": [ | |||
"vendor/bin/parallel-lint -j $(nproc) --exclude tests/Fixtures/var src tests ", | |||
"vendor/bin/yaml-lint src" | |||
], | |||
"test:php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run --verbose", | |||
"test:phpcpd": "vendor/bin/phpcpd --fuzzy src tests --exclude=Fixtures/var", | |||
"test:composer-require-checker": "vendor/bin/composer-require-checker", | |||
"test:phpmd": "vendor/bin/phpmd src,tests text ./phpmd-ruleset.xml --suffixes=php", | |||
"test:phpstan": "vendor/bin/phpstan analyse --no-progress", | |||
"test:phpunit": "vendor/bin/phpunit" | |||
} | } | ||
} | } |
devtools/.gitrepo
deleted
100644 → 0
devtools/README.md
deleted
100644 → 0
phpmd-ruleset.xml
deleted
120000 → 0
phpmd-ruleset.xml
0 → 100644
phpstan.neon
0 → 100644