Skip to content

Commit db202d9

Browse files
committed
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.
1 parent d33a6a9 commit db202d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
apt:
3131
packages:
3232
- libonig-dev
33+
script:
34+
- composer require --dev phpstan/phpstan
35+
- php vendor/bin/phpstan analyse --configuration=phpstan.neon
36+
3337
# Nightly is PHP 8.0 since Feb 2019.
3438
- php: nightly
3539
addons:
@@ -83,5 +87,3 @@ script:
8387
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/PSR12/ruleset.xml <(xmllint --format "./src/Standards/PSR12/ruleset.xml"); fi
8488
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Squiz/ruleset.xml <(xmllint --format "./src/Standards/Squiz/ruleset.xml"); fi
8589
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Zend/ruleset.xml <(xmllint --format "./src/Standards/Zend/ruleset.xml"); fi
86-
# Run PHPStan
87-
- if [[ $PHPSTAN == "1" ]]; then composer require --dev phpstan/phpstan && php vendor/bin/phpstan analyse --configuration=phpstan.neon; fi

0 commit comments

Comments
 (0)