Update CI to use several PHP versions

This commit is contained in:
Timothy Warren 2023-12-21 13:49:54 -05:00
parent ff8c837fd9
commit 3794ed20a8
1 changed files with 15 additions and 2 deletions

17
Jenkinsfile vendored
View File

@ -10,10 +10,23 @@ pipeline {
sh 'php composer.phar install --ignore-platform-reqs'
}
}
stage('PHP 8') {
stage('PHP 8.1') {
agent {
docker {
image 'php:8-cli-alpine'
image 'php:8.1-cli-alpine'
args '-u root --privileged'
}
}
steps {
sh 'apk add --no-cache git icu-dev'
sh 'docker-php-ext-configure intl && docker-php-ext-install intl'
sh 'php ./vendor/bin/phpunit --colors=never'
}
}
stage('PHP 8.2') {
agent {
docker {
image 'php:8.2-cli-alpine'
args '-u root --privileged'
}
}