Skip to content

Commit

Permalink
Travis: simpify PHPStan build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl committed Aug 30, 2020
1 parent d33a6a9 commit db202d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit db202d9

Please sign in to comment.