Commit e9d91191 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

CI: correction des scripts composer.

parent 0151b7f7
...@@ -93,19 +93,18 @@ ...@@ -93,19 +93,18 @@
"fix-cs": "vendor/bin/php-cs-fixer fix", "fix-cs": "vendor/bin/php-cs-fixer fix",
"test": [ "test": [
"@test:lint", "@test:lint",
"@test:php-cs-ixer",
"@test:phpcpd", "@test:phpcpd",
"@test:phpmd", "@test:phpmd",
"@test:phpstan", "@test:phpstan",
"@test:phpunit", "@test:phpunit",
"@test:composer-validate", "@test:composer-validate",
"@test:composer-require", "@test:composer-require-checker",
"@test:security", "@test:security-checker",
"@test:console" "@test:console"
], ],
"test:lint": [ "test:lint": "vendor/bin/parallel-lint src tests",
"vendor/bin/parallel-lint src tests", "test:php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run",
"vendor/bin/php-cs-fixer fix --dry-run"
],
"test:phpcpd": "vendor/bin/phpcpd --fuzzy src tests", "test:phpcpd": "vendor/bin/phpcpd --fuzzy src tests",
"test:phpmd": "vendor/bin/phpmd src,tests text ./phpmd-ruleset.xml", "test:phpmd": "vendor/bin/phpmd src,tests text ./phpmd-ruleset.xml",
"test:phpstan": "vendor/bin/phpstan analyse --ansi --no-progress src tests", "test:phpstan": "vendor/bin/phpstan analyse --ansi --no-progress src tests",
...@@ -117,8 +116,8 @@ ...@@ -117,8 +116,8 @@
"@php -d zend_extension=xdebug.so vendor/bin/phpunit --colors=always" "@php -d zend_extension=xdebug.so vendor/bin/phpunit --colors=always"
], ],
"test:composer-validate": "composer validate", "test:composer-validate": "composer validate",
"test:composer-require": "vendor/bin/composer-require-checker check", "test:composer-require-checker": "vendor/bin/composer-require-checker check",
"test:security": "test '!' -s composer.lock || vendor/bin/security-checker security:check", "test:security-checker": "test '!' -s composer.lock || vendor/bin/security-checker security:check",
"test:console": "@php tests/console", "test:console": "@php tests/console",
"dev:serve": "tests/console server:run -v", "dev:serve": "tests/console server:run -v",
"dev:docker-serve": "docker run --rm -v \"$PWD/src:/app/src:ro\" -v \"$PWD/tests:/app/tests:ro\" $(docker build . -q)" "dev:docker-serve": "docker run --rm -v \"$PWD/src:/app/src:ro\" -v \"$PWD/tests:/app/tests:ro\" $(docker build . -q)"
...@@ -133,7 +132,7 @@ ...@@ -133,7 +132,7 @@
"test:phpstan": "Détecte des erreurs de programmation grâce au typage.", "test:phpstan": "Détecte des erreurs de programmation grâce au typage.",
"test:phpunit": "Exécute les tests dynamiques.", "test:phpunit": "Exécute les tests dynamiques.",
"test:composer-validate": "Vérifie la validité du composer.json.", "test:composer-validate": "Vérifie la validité du composer.json.",
"test:composer-require": "Vérifie que les sources n'utilise que des librairies listés dans les dépendances directes.", "test:composer-require-checker": "Vérifie que les sources n'utilise que des librairies listés dans les dépendances directes.",
"test:security": "Vérifie qu'aucun paquet utilisé n'ait de faille de sécurité signalée." "test:security-checker": "Vérifie qu'aucun paquet utilisé n'ait de faille de sécurité signalée."
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment