Yet another CI code coverage commit

This commit is contained in:
Timothy Warren 2020-03-12 11:17:27 -04:00
parent 357e08d41e
commit 5b58059860

39
Jenkinsfile vendored
View File

@ -2,12 +2,7 @@ pipeline {
agent none agent none
stages { stages {
stage('setup') { stage('setup') {
agent { agent any
docker {
image 'php:alpine'
args '-u root --privileged'
}
}
steps { steps {
sh 'apk add --no-cache git' sh 'apk add --no-cache git'
sh 'curl -sS https://getcomposer.org/installer | php' sh 'curl -sS https://getcomposer.org/installer | php'
@ -23,15 +18,7 @@ pipeline {
} }
} }
steps { steps {
sh 'php ./vendor/bin/phpunit --colors=never'
sh 'apk update'
sh 'apk add --no-cache git php7-phpdbg'
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-clover clover.xml --colors=never'
step([
$class: 'CloverPublisher',
cloverReportDir: '',
cloverReportFileName: 'build/logs/clover.xml',
])
} }
} }
stage('PHP 7.4') { stage('PHP 7.4') {
@ -45,5 +32,27 @@ pipeline {
sh 'php ./vendor/bin/phpunit --colors=never' sh 'php ./vendor/bin/phpunit --colors=never'
} }
} }
stage('Latest PHP') {
agent {
docker {
image 'php:alpine'
args '-u root --privileged'
}
}
steps {
sh 'php ./vendor/bin/phpunit --colors=never'
}
}
stage('Coverage') {
agent any
steps {
sh 'phpdbg -qrr -- ./vendor/bin/phpunit -c build --colors=never'
step([
$class: 'CloverPublisher',
cloverReportDir: '',
cloverReportFileName: 'build/logs/clover.xml',
])
}
}
} }
} }