MAPG-199 add static code analysis step to pipeline

This commit is contained in:
bence committed 2020-07-05 22:51:36 +02:00
1 parent 405488cf4e
commit 39d691fd7f
2 files changed
+18

No files matched your search

+9
View File
@@ -13,3 +13,12 @@ pipelines:
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- 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
View File
@@ -0,0 +1,9 @@
parameters:
level: 5
checkMissingIterableValueType: false
paths:
- main.php
- mapg
- web.php
- src
- tests