evoadmin-web/.Jenkinsfile
Mathieu Trossevin 293ea73b6b
All checks were successful
Tests / PHPStan (static analysis) <sub>Send us [feedback](https://github.com/jenkinsci/junit-plugin/issues)
gitea/evoadmin-web/pipeline/head This commit looks good
Initialise CI with PHPStan level 0
2023-11-13 14:51:16 +01:00

23 lines
647 B
Plaintext

pipeline {
agent {
docker {
image 'php:8.2-cli'
}
}
stages {
stage('PHPStan (static analysis)') {
steps {
script {
sh 'curl -fsSL https://github.com/phpstan/phpstan/releases/download/1.10.41/phpstan.phar -o phpstan.phar'
sh 'php ./phpstan.phar analyse --configuration=phpstan.neon --memory-limit=512M --error-format=junit > phpstan-results.junit.xml'
}
}
post {
always {
junit 'phpstan-results.junit.xml'
}
}
}
}
}