HummingBirdAnimeClient/Jenkinsfile

61 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-10-11 11:11:24 -04:00
pipeline {
agent none
stages {
2020-03-12 10:24:21 -04:00
stage('setup') {
2020-03-12 11:17:27 -04:00
agent any
steps {
sh 'curl -sS https://getcomposer.org/installer | php'
2020-03-17 15:15:20 -04:00
sh 'rm -rf ./vendor'
sh 'rm -f composer.lock'
sh 'php composer.phar install --ignore-platform-reqs'
2020-03-12 10:24:21 -04:00
}
}
2019-12-05 11:20:06 -05:00
stage('PHP 7.4') {
agent {
docker {
2020-12-11 10:26:24 -05:00
image 'php:7.4-cli-alpine'
args '-u root --privileged'
}
}
steps {
sh 'apk add --no-cache git'
sh 'php ./vendor/bin/phpunit --colors=never'
}
}
stage('PHP 8') {
agent {
docker {
image 'php:8-cli-alpine'
args '-u root --privileged'
2019-12-05 11:20:06 -05:00
}
}
steps {
2020-03-12 11:20:07 -04:00
sh 'apk add --no-cache git'
2020-03-12 11:08:18 -04:00
sh 'php ./vendor/bin/phpunit --colors=never'
2019-12-05 11:20:06 -05:00
}
}
2020-03-12 11:17:27 -04:00
stage('Latest PHP') {
agent {
docker {
2020-12-11 10:26:24 -05:00
image 'php:cli-alpine'
args '-u root --privileged'
2020-03-12 11:17:27 -04:00
}
}
steps {
2020-03-12 11:20:07 -04:00
sh 'apk add --no-cache git'
2020-03-12 11:17:27 -04:00
sh 'php ./vendor/bin/phpunit --colors=never'
}
}
stage('Coverage') {
agent any
steps {
2020-03-12 11:29:00 -04:00
sh 'php composer.phar run-script coverage'
2020-03-12 11:17:27 -04:00
step([
$class: 'CloverPublisher',
cloverReportDir: '',
cloverReportFileName: 'build/logs/clover.xml',
])
}
}
}
}