php-kilo/Jenkinsfile

20 lines
463 B
Groovy

pipeline {
agent none
stages {
stage('PHP 7.4') {
agent {
docker {
image 'php:7.4-cli-alpine'
args '-u root --privileged'
}
}
steps {
sh 'docker-php-ext-install ffi'
sh 'apk add --no-cache php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'php composer.phar install'
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never -c phpunit.xml tests'
}
}
}
}