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

[CLEANUP] Restructure the Composer scripts (#8)

This commit is contained in:
Oliver Klee 2018-01-27 16:04:27 +01:00 committed by GitHub
parent bbb6f8e5f0
commit d6ad3b80b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -30,4 +30,4 @@ script:
- >
echo;
echo "Linting all PHP files";
composer php-lint;
composer ci:php:lint;

View file

@ -62,7 +62,13 @@
"vendor-dir": ".Build/vendor"
},
"scripts": {
"php-lint": "find *.php Classes/ Configuration/ Tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
"ci:php:lint": "find *.php Classes/ Configuration/ Tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
"ci:static": [
"@ci:php:lint"
],
"ci": [
"@ci:static"
],
"require-typo3-version": [
"@php -r '$conf=json_decode(file_get_contents(__DIR__.\"/composer.json\"),true);$conf[\"require\"][\"typo3/cms-core\"]=$_SERVER[\"argv\"][1];file_put_contents(__DIR__.\"/composer.json\",json_encode($conf,JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT).chr(10));'",
"@composer install"