Attempt to fix code quality check
Gitea - aviat/banker/pipeline/head There was a failure building this commit Details

This commit is contained in:
Timothy Warren 2021-11-30 15:17:35 -05:00
parent 3c67f8056c
commit fbbb612b1f
2 changed files with 3 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -40,7 +40,7 @@ pipeline {
stage('Code Cleanliness') { stage('Code Cleanliness') {
agent any agent any
steps { steps {
sh "php ./vendor/bin/phpstan analyse -c phpstan.neon -n --no-progress --no-ansi --error-format=checkstyle > ./build/logs/phpstan.log" sh 'php composer.phar run-script ci:phpstan'
recordIssues( recordIssues(
failOnError: false, failOnError: false,
tools: [phpStan(reportEncoding: 'UTF-8', pattern: 'build/logs/phpstan.log')] tools: [phpStan(reportEncoding: 'UTF-8', pattern: 'build/logs/phpstan.log')]

View File

@ -62,6 +62,7 @@
"scripts": { "scripts": {
"test": "vendor/bin/phpunit -c build --no-coverage", "test": "vendor/bin/phpunit -c build --no-coverage",
"coverage": "phpdbg -qrr -- vendor/bin/phpunit -c build", "coverage": "phpdbg -qrr -- vendor/bin/phpunit -c build",
"phpstan": "vendor/bin/phpstan analyse src tests" "phpstan": "vendor/bin/phpstan analyse src tests",
"ci:phpstan": "vendor/bin/phpstan analyse -c phpstan.neon -n --no-progress --no-ansi --error-format=checkstyle > ./build/logs/phpstan.log"
} }
} }