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