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 {