ion/Jenkinsfile

50 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2018-10-11 13:30:20 -04:00
pipeline {
agent none
stages {
stage('PHP 7.2') {
agent {
docker {
image 'php:7.2-alpine'
args '-u root --privileged'
}
}
steps {
2019-12-05 15:25:47 -05:00
sh 'apk add --no-cache php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'rm -f composer.lock'
2019-12-05 16:26:05 -05:00
sh 'php composer.phar install --ignore-platform-reqs'
2019-12-05 15:25:47 -05:00
sh 'php composer.phar run-script coverage -- --coverage-text --colors=never'
}
}
stage('PHP 7.3') {
agent {
docker {
image 'php:7.3-alpine'
args '-u root --privileged'
}
}
steps {
sh 'apk add --no-cache php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'rm -f composer.lock'
2019-12-05 16:26:05 -05:00
sh 'php composer.phar install --ignore-platform-reqs'
2019-12-05 15:25:47 -05:00
sh 'php composer.phar run-script coverage -- --coverage-text --colors=never'
}
}
stage('PHP 7.4') {
agent {
docker {
image 'php:7.4-alpine'
args '-u root --privileged'
}
}
steps {
2018-10-11 13:30:20 -04:00
sh 'apk add --no-cache php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'rm -f composer.lock'
2019-12-05 16:26:05 -05:00
sh 'php composer.phar install --ignore-platform-reqs'
sh 'php composer.phar run-script coverage -- --coverage-text --colors=never'
2018-10-11 13:30:20 -04:00
}
}
}
}