|
|
@ -21,10 +21,11 @@ |
|
|
|
"codeception/codeception": "^4.1", |
|
|
|
"codeception/module-asserts": "^1.3", |
|
|
|
"codeception/module-phpbrowser": "^1.0", |
|
|
|
"codeception/module-rest": "^1.2", |
|
|
|
"ergebnis/composer-normalize": "^2.13", |
|
|
|
"friendsofphp/php-cs-fixer": "^2.18", |
|
|
|
"roave/security-advisories": "dev-master", |
|
|
|
"codeception/module-rest": "^1.2" |
|
|
|
"php-parallel-lint/php-parallel-lint": "^1.2", |
|
|
|
"roave/security-advisories": "dev-master" |
|
|
|
}, |
|
|
|
"config": { |
|
|
|
"apcu-autoloader": true, |
|
|
@ -33,7 +34,8 @@ |
|
|
|
"optimize-autoloader": true, |
|
|
|
"preferred-install": { |
|
|
|
"*": "dist" |
|
|
|
} |
|
|
|
}, |
|
|
|
"sort-packages": true |
|
|
|
}, |
|
|
|
"extra": { |
|
|
|
"composer-normalize": { |
|
|
@ -71,33 +73,68 @@ |
|
|
|
"assets:install %PUBLIC_DIR%": "symfony-cmd" |
|
|
|
}, |
|
|
|
"codecept": "codecept -c tests/codeception.yml", |
|
|
|
"json-cs-fix": "composer normalize", |
|
|
|
"lint:php": [ |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./bin/console", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./config/bundles.php", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./config/preload.php", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./public/index.php", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./src", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./tests/_support/Helper", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./tests/_support/AcceptanceTester.php", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./tests/_support/ApiTester.php", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./tests/_support/UnitTester.php", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./tests/acceptance", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./tests/api", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./tests/unit", |
|
|
|
"parallel-lint --no-progress --no-colors --blame ./.php_cs" |
|
|
|
], |
|
|
|
"lint:yaml": [ |
|
|
|
"bin/console --quiet --no-debug l:yaml ./config/packages", |
|
|
|
"bin/console --quiet --no-debug l:yaml ./config/routes", |
|
|
|
"bin/console --quiet --no-debug l:yaml ./config/routes.yaml", |
|
|
|
"bin/console --quiet --no-debug l:yaml ./config/services.yaml", |
|
|
|
"bin/console --quiet --no-debug l:yaml ./tests/acceptance.suite.yml", |
|
|
|
"bin/console --quiet --no-debug l:yaml ./tests/api.suite.yml", |
|
|
|
"bin/console --quiet --no-debug l:yaml ./tests/codeception.yml", |
|
|
|
"bin/console --quiet --no-debug l:yaml ./tests/unit.suite.yml" |
|
|
|
], |
|
|
|
"php-cs-fix": [ |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache bin/console", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache config/bundles.php", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache config/preload.php", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache public/index.php", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache src", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/Helper", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/AcceptanceTester.php", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/ApiTester.php", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/_support/UnitTester.php", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/acceptance", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/api", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache tests/unit", |
|
|
|
"php vendor/bin/php-cs-fixer fix --cache-file=var/php-cs-fixer/.php-cs.cache .php_cs" |
|
|
|
], |
|
|
|
"test:api": [ |
|
|
|
"@codecept build -q", |
|
|
|
"@codecept run api" |
|
|
|
"prepare-request": [ |
|
|
|
"@json-cs-fix", |
|
|
|
"@lint:yaml", |
|
|
|
"@lint:php", |
|
|
|
"@lint:container", |
|
|
|
"@php-cs-fix", |
|
|
|
"@test:unit", |
|
|
|
"@test:api", |
|
|
|
"@test:acceptance" |
|
|
|
], |
|
|
|
"test:acceptance": [ |
|
|
|
"@codecept build -q", |
|
|
|
"@codecept run acceptance" |
|
|
|
], |
|
|
|
"test:api": [ |
|
|
|
"@codecept build -q", |
|
|
|
"@codecept run api" |
|
|
|
], |
|
|
|
"test:unit": [ |
|
|
|
"@codecept build -q", |
|
|
|
"@codecept run unit --no-rebuild --coverage-html --coverage-text --no-colors" |
|
|
|
], |
|
|
|
"prepare": [ |
|
|
|
"@json-cs-fix", |
|
|
|
"@php-cs-fix", |
|
|
|
"@test:unit", |
|
|
|
"@test:api", |
|
|
|
"@test:acceptance" |
|
|
|
] |
|
|
|
} |
|
|
|
} |