Attempt to add PHPStan messages to CI

This commit is contained in:
Timothy Warren 2021-02-12 10:07:55 -05:00
parent 057d4bfae7
commit 74ef13713d
1 changed files with 3 additions and 8 deletions

11
Jenkinsfile vendored
View File

@ -35,15 +35,10 @@ pipeline {
}
}
stage('Code Cleanliness') {
agent {
docker {
image 'php:8-cli-alpine'
args '-u root --privileged'
}
}
agent any
steps {
sh "php ./vendor/bin/phpstan analyse src/ -c phpstan.neon -n --no-ansi --no-progress --error-format=checkstyle > build/logs/checkstyle.xml"
recordIssues(tools: [checkstyle(reportEncoding: 'UTF-8')])
sh "php8 ./vendor/bin/phpstan analyse src/ -c phpstan.neon -n --no-ansi --no-progress --error-format=checkstyle | awk '{\$1=\$1;print}' > build/logs/checkstyle.xml"
recordIssues(tools: [checkstyle(reportEncoding: 'UTF-8', reportFileName: 'build/logs/checkstyle.xml')])
}
}
stage('Coverage') {