Skip to content

Commit 48d5bae

Browse files
committed
Merge branch 'feature/travis-phpstan-build' of https://github.com/jrfnl/PHP_CodeSniffer
2 parents 1024264 + db202d9 commit 48d5bae

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)