You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
animegame/Jenkinksfile

26 lines
624 B

pipeline {
agent any
stages {
stage('Build') {
agent any
steps {
sh 'composer install'
}
}
stage('PHP CS Fixer') {
steps {
sh 'php-cs-fixer fix --dry-run --no-interaction --diff -vvv src/'
}
}
stage('Test') {
steps {
sh 'php ./bin/phpunit --coverage-clover=\'reports/coverage/coverage.xml\' --coverage-html=\'reports/coverage\''
}
}
stage('Coverage') {
steps {
step([$class: 'CloverPublisher'undefined cloverReportDir: '/reports/coverage'undefined cloverReportFileName: 'coverage.xml'])
}
}
}
}