Skip to content

Commit

Permalink
Add build stage for php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 21, 2018
1 parent 9c88e7c commit d6767fe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Expand Up @@ -51,7 +51,7 @@ notifications:

jobs:
include:
- stage: Code Quality
- stage: Quality
php: 7.2
env: PHPStan
install: travis_retry composer update --prefer-dist --prefer-stable
Expand All @@ -60,3 +60,11 @@ jobs:
script:
- vendor/bin/phpstan analyse --level=0 -c phpstan.neon src
- vendor/bin/phpstan analyse --level=0 -c phpstan-tests.neon tests
- stage: Style
php: 7.2
env: php-cs-fixer
install:
- wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O php-cs-fixer
- phpenv config-rm xdebug.ini
script:
- php php-cs-fixer --diff --dry-run -v fix

0 comments on commit d6767fe

Please sign in to comment.