Added Jenkinksfile

feature/symfony_upgrade
Hecht 4 years ago
parent 1098e6c362
commit a4cf69e38c

@ -0,0 +1,26 @@
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'])
}
}
}
}
Loading…
Cancel
Save