php-kilo/Jenkinsfile

22 lines
633 B
Plaintext
Raw Normal View History

2019-11-20 16:11:31 -05:00
pipeline {
agent {
dockerfile {
2020-03-11 14:56:00 -04:00
args '-u root --privileged'
}
}
2019-11-20 16:11:31 -05:00
stages {
2021-12-03 11:59:42 -05:00
stage('PHP 8.1') {
2019-11-20 16:11:31 -05:00
steps {
2022-08-23 14:47:36 -04:00
sh 'apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing phpdbg'
2019-11-20 16:11:31 -05:00
sh 'curl -sS https://getcomposer.org/installer | php'
2019-12-04 10:46:26 -05:00
sh 'php composer.phar install'
2020-03-11 14:47:20 -04:00
sh 'phpdbg -dffi.enable=1 -qrr -- ./vendor/bin/phpunit --coverage-text --coverage-clover clover.xml --colors=never -c phpunit.xml tests'
2020-03-11 14:58:12 -04:00
step([
$class: 'CloverPublisher',
2020-03-11 14:59:34 -04:00
cloverReportDir: '',
2020-03-11 14:58:12 -04:00
cloverReportFileName: 'clover.xml',
])
2019-11-20 16:11:31 -05:00
}
}
}
}