Skip to content

Commit

Permalink
CI: move phpstan config to standard location
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Jan 20, 2019
1 parent 923d340 commit 8ccc71d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.gitkeep export-ignore
/.* export-ignore
/tests export-ignore
/phpstan*.neon.dist export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
/composer.lock
/phpstan*.neon
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ install:
script:
- vendor/bin/parallel-lint -e php,phpt --exclude tests/temp src tests
- vendor/bin/tester -s -p php -c tests/php.ini tests
- vendor/bin/phpstan.phar analyse -c tests/phpstan.neon -l max src
- vendor/bin/phpstan.phar analyse -c tests/phpstan.tests.neon -l max tests
- vendor/bin/phpstan.phar analyse
- vendor/bin/phpstan.phar analyse -c phpstan.tests.neon.dist

after_failure:
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
Expand Down
4 changes: 4 additions & 0 deletions tests/phpstan.neon → phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ includes:
- phar://phpstan.phar/vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
level: max
paths:
- %currentWorkingDirectory%/src

exceptionRules:
uncheckedExceptions:
- LogicException
Expand Down
4 changes: 4 additions & 0 deletions tests/phpstan.tests.neon → phpstan.tests.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ includes:
- phar://phpstan.phar/vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
level: max
paths:
- %currentWorkingDirectory%/tests

fileExtensions:
- php
- phpt
Expand Down

0 comments on commit 8ccc71d

Please sign in to comment.