|
|
@@ -55,6 +55,11 @@ unit:
|
|
|
static_analysis:
|
|
|
image: $CI_REGISTRY_IMAGE:latest
|
|
|
stage: analysis
|
|
|
+
|
|
|
+ before_script:
|
|
|
+ - composer config -g cache-dir .composer-cache
|
|
|
+ - HOST=ci composer install --prefer-dist --no-progress --no-interaction
|
|
|
+
|
|
|
script:
|
|
|
- php vendor/bin/phpstan analyse -c phpstan.neon.dist --error-format gitlab > phpstan.json # Display code quality in MR
|
|
|
- php vendor/bin/phpstan analyse -c phpstan.neon.dist
|
|
|
@@ -66,5 +71,10 @@ static_analysis:
|
|
|
code_style:
|
|
|
image: $CI_REGISTRY_IMAGE:latest
|
|
|
stage: analysis
|
|
|
+
|
|
|
+ before_script:
|
|
|
+ - composer config -g cache-dir .composer-cache
|
|
|
+ - HOST=ci composer install --prefer-dist --no-progress --no-interaction
|
|
|
+
|
|
|
script:
|
|
|
- php vendor/bin/php-cs-fixer check --config=.php-cs-fixer.dist.php
|