From db202d9d332297c32513132476cb93460b30ebbd Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 31 Aug 2020 01:16:19 +0200 Subject: [PATCH] Travis: simpify PHPStan build As there is already a PHP 7.4 build in place running exactly the same build as the PHP 7.4 PHPStan build, with the exception of the actual PHPStan run, we can skip the "normal" build checks for the PHPStan build and just and only run PHPStan. --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0145ca1649..432aa23377 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,10 @@ jobs: apt: packages: - libonig-dev + script: + - composer require --dev phpstan/phpstan + - php vendor/bin/phpstan analyse --configuration=phpstan.neon + # Nightly is PHP 8.0 since Feb 2019. - php: nightly addons: @@ -83,5 +87,3 @@ script: - if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/PSR12/ruleset.xml <(xmllint --format "./src/Standards/PSR12/ruleset.xml"); fi - if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Squiz/ruleset.xml <(xmllint --format "./src/Standards/Squiz/ruleset.xml"); fi - if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Zend/ruleset.xml <(xmllint --format "./src/Standards/Zend/ruleset.xml"); fi - # Run PHPStan - - if [[ $PHPSTAN == "1" ]]; then composer require --dev phpstan/phpstan && php vendor/bin/phpstan analyse --configuration=phpstan.neon; fi