Olivier Massot 7 tháng trước cách đây
mục cha
commit
787525d2ee
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      .gitlab-ci.yml

+ 10 - 0
.gitlab-ci.yml

@@ -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