MAPG-199 save static code analysis results as artifact

This commit is contained in:
Bence Pőcze 2020-07-06 18:47:33 +02:00
parent 2ac9794e3f
commit 8cbf611189
Signed by: bence
GPG Key ID: AA52B11A3269D1C1
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
.env
installed
unit_test_results.xml
vendor

View File

@ -17,8 +17,10 @@ pipelines:
name: Static Code Analysis
caches:
- composer
artifacts:
- static_code_analysis_results.json
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
- vendor/bin/phpstan analyse -c phpstan.neon --error-format=prettyJson > static_code_analysis_results.json