Skip to main content

PHPStan

Intégration de phpstan, création d'un rapport en artefact

Utilisation

variables:
CI_TEMPLATE_VERSION: &CI_TEMPLATE_VERSION main
PHPSTAN_DOCKER_IMAGE: wodby/drupal-php:7.4-dev
PHPSTAN_QA_FILE: files/phpstan.txt
PHPSTAN_CONFIG_FILE: phpstan.neon
PHPSTAN_ALLOW_FAILURE: "true"

include:
- project: kgaut/gitlab-ci-templates
ref: *CI_TEMPLATE_VERSION
file:
- '/templates/qa/phpstan.yml'

Variables nécessaires

Nom de la variableContenuExempleRemarque
PHPSTAN_DOCKER_IMAGEImage docker à utiliser pour executer le testwodby/drupal-php:7.4-dev
PHPSTAN_QA_FILEChemin et nom du fichier de sorti qui sera en artefactfiles/phpstan.txt
PHPSTAN_CONFIG_FILEFichier de config phpstanphpstan.neon
PHPSTAN_ALLOW_FAILURESi à une autre valeur que "true", alors le job plantera et arrêtera la CI."true"