Skip to content
Snippets Groups Projects
Commit 6a91636d authored by Jan Kuchař's avatar Jan Kuchař
Browse files

CI: add phpstan

parent 8f7b57a5
Branches
Tags
No related merge requests found
Pipeline #
stages: stages:
- build
- tests - tests
dependencies.install:
stage: build
tags: ["grifart/php7.1-with-gulp-and-all-php-modules"]
image: grifart/php7.1-with-gulp-and-all-php-modules
script:
- composer install --ansi --no-interaction
artifacts:
expire_in: 30 minutes
paths:
- vendor
tests-php7.1: tests-php7.1:
stage: tests stage: tests
tags: ["grifart/php7.1-with-gulp-and-all-php-modules"] tags: ["grifart/php7.1-with-gulp-and-all-php-modules"]
image: grifart/php7.1-with-gulp-and-all-php-modules image: grifart/php7.1-with-gulp-and-all-php-modules
before_script:
- composer install --ansi --no-interaction
script: script:
- vendor/bin/tester -c tests/php.ini tests - vendor/bin/tester -c tests/php.ini tests
artifacts: artifacts:
expire_in: 30 minutes expire_in: 30 minutes
paths: paths:
- tests - tests
when: on_failure when: on_failure
phpstan:
stage: tests
tags: ["grifart/php7.1-with-gulp-and-all-php-modules"]
image: grifart/php7.1-with-gulp-and-all-php-modules
# Now in require-dev in composer.json
# before_script:
# - composer require --dev phpstan/phpstan --ansi --no-interaction
script:
- vendor/bin/phpstan analyse src -l 5 --ansi --no-progress --no-interaction
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
}, },
"require-dev": { "require-dev": {
"nette/tester": "~1.7.1" "nette/tester": "~1.7.1",
"phpstan/phpstan": "^0.6.4"
}, },
"autoload": { "autoload": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment