MAPG-199 add static code analysis step to pipeline
This commit is contained in:
parent
405488cf4e
commit
39d691fd7f
@ -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
9
phpstan.neon
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
parameters:
|
||||||
|
level: 5
|
||||||
|
checkMissingIterableValueType: false
|
||||||
|
paths:
|
||||||
|
- main.php
|
||||||
|
- mapg
|
||||||
|
- web.php
|
||||||
|
- src
|
||||||
|
- tests
|
Loading…
Reference in New Issue
Block a user