From d6ad3b80b101299ad21a8996c1754846bf113c6c Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 27 Jan 2018 16:04:27 +0100 Subject: [PATCH] [CLEANUP] Restructure the Composer scripts (#8) --- .travis.yml | 2 +- composer.json | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f275887..0c1f055 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,4 +30,4 @@ script: - > echo; echo "Linting all PHP files"; - composer php-lint; + composer ci:php:lint; diff --git a/composer.json b/composer.json index 5998c2f..505cd53 100644 --- a/composer.json +++ b/composer.json @@ -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"