From 3c8b564ab92de9a5b0f322ce201afa324efacae3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 12 Feb 2021 09:39:28 -0500 Subject: [PATCH] Attempt to add PHPStan messages to CI --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 40ad8172..b43ccb76 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,6 +34,13 @@ pipeline { sh 'php ./vendor/bin/phpunit --colors=never' } } + stage('Code Cleanliness') { + agent any + steps { + sh 'php ./vendor/bin/phpstan analyse src/ -l max -c phpstan.neon -n --no-ansi --no-progress --error-format=checkstyle | awk '{$1=$1;print}' > build/logs/checkstyle.xml' + checkstyle 'build/logs/checkstyle.xml' + } + } stage('Coverage') { agent any steps {