Add code coverage to CI
This commit is contained in:
parent
4c43a0cf79
commit
ea2065ab4d
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -46,7 +46,12 @@ pipeline {
|
|||||||
sh 'rm -f composer.lock'
|
sh 'rm -f composer.lock'
|
||||||
sh 'php composer.phar install --ignore-platform-reqs'
|
sh 'php composer.phar install --ignore-platform-reqs'
|
||||||
sh 'php vendor/bin/robo lint'
|
sh 'php vendor/bin/robo lint'
|
||||||
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never'
|
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --coverage-clover clover.xml --colors=never'
|
||||||
|
step([
|
||||||
|
$class: 'CloverPublisher',
|
||||||
|
cloverReportDir: '',
|
||||||
|
cloverReportFileName: 'clover.xml',
|
||||||
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user