Parcourir la source

phpstan report ci

Vincent il y a 2 ans
Parent
commit
083f52ab3e
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      .gitlab-ci.yml

+ 5 - 1
.gitlab-ci.yml

@@ -16,7 +16,11 @@ before_script:
 
 static_analysis:
   script:
-    - vendor/bin/phpstan analyse -c phpstan.neon.dist --error-format=gitlab
+    - php --version && php -d memory_limit=512M vendor/bin/phpstan analyse -c phpstan.neon.dist --no-progress --error-format gitlab > phpstan.json
+  artifacts:
+    when: always
+    reports:
+      codequality: phpstan.json
 
 unit:
   stage: test