Skip to content

Commit de409c7

Browse files
jrfnlgsherwood
authored andcommitted
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 bc630c3 commit de409c7

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
@@ -20,6 +20,10 @@ jobs:
2020
apt:
2121
packages:
2222
- libonig-dev
23+
script:
24+
- composer require --dev phpstan/phpstan
25+
- php vendor/bin/phpstan analyse --configuration=phpstan.neon
26+
2327
# Nightly is PHP 8.0 since Feb 2019.
2428
- php: nightly
2529
addons:
@@ -68,5 +72,3 @@ script:
6872
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/PSR12/ruleset.xml <(xmllint --format "./src/Standards/PSR12/ruleset.xml"); fi
6973
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Squiz/ruleset.xml <(xmllint --format "./src/Standards/Squiz/ruleset.xml"); fi
7074
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Zend/ruleset.xml <(xmllint --format "./src/Standards/Zend/ruleset.xml"); fi
71-
# Run PHPStan
72-
- if [[ $PHPSTAN == "1" ]]; then composer require --dev phpstan/phpstan && php vendor/bin/phpstan analyse --configuration=phpstan.neon; fi

0 commit comments

Comments
 (0)