MAPG-199 add static code analysis step to pipeline

This commit is contained in:
Bence Pőcze 2020-07-05 21:38:41 +02:00
parent 405488cf4e
commit 39d691fd7f
Signed by: bence
GPG Key ID: AA52B11A3269D1C1
2 changed files with 18 additions and 0 deletions

View File

@ -13,3 +13,12 @@ pipelines:
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install - composer install
- vendor/bin/phpunit --log-junit unit_test_results.xml --testdox tests - vendor/bin/phpunit --log-junit unit_test_results.xml --testdox tests
- step:
name: Static Code Analysis
caches:
- composer
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/phpstan analyse -c phpstan.neon

9
phpstan.neon Normal file
View File

@ -0,0 +1,9 @@
parameters:
level: 5
checkMissingIterableValueType: false
paths:
- main.php
- mapg
- web.php
- src
- tests