Skip to content

Commit

Permalink
Add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphan Kochen committed Sep 29, 2017
1 parent 876c1f7 commit af1e441
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -6,9 +6,13 @@ php:
- 7.1
- 7.2

before_install:
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
- composer install -n

script:
- ./vendor/bin/phpcs --standard=psr2 . --ignore=/vendor/
- ./vendor/bin/phpstan analyse --level max src/
- ./vendor/bin/phpunit
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -22,6 +22,7 @@
},
"require-dev": {
"phpunit/phpunit": "^6.3",
"phpstan/phpstan": "^0.8",
"squizlabs/php_codesniffer": "^3.1"
}
}

0 comments on commit af1e441

Please sign in to comment.