Olivier Massot 7 月之前
父节点
当前提交
787525d2ee
共有 1 个文件被更改,包括 10 次插入0 次删除
  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