From 5b58059860f0d0e9cba538b40535b37dc310acf5 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 12 Mar 2020 11:17:27 -0400 Subject: [PATCH] Yet another CI code coverage commit --- Jenkinsfile | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 041bd92f..04d9c1df 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,12 +2,7 @@ pipeline { agent none stages { stage('setup') { - agent { - docker { - image 'php:alpine' - args '-u root --privileged' - } - } + agent any steps { sh 'apk add --no-cache git' sh 'curl -sS https://getcomposer.org/installer | php' @@ -23,15 +18,7 @@ pipeline { } } steps { - - 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', - ]) + sh 'php ./vendor/bin/phpunit --colors=never' } } stage('PHP 7.4') { @@ -45,5 +32,27 @@ pipeline { 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', + ]) + } + } } } \ No newline at end of file