Merged in feature/MAPG-199-static-analyser-save-artifact (pull request #178)

MAPG-199 save static code analysis results as artifact
This commit is contained in:
Bence Pőcze 2020-07-06 16:52:21 +00:00
commit 2ccee26424
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

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

View File

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