Attempt to run CI in stages
All checks were successful
Gitea - aviat/banker/pipeline/head This commit looks good
All checks were successful
Gitea - aviat/banker/pipeline/head This commit looks good
This commit is contained in:
parent
1fe72c7212
commit
354912a6c9
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -12,7 +12,7 @@ pipeline {
|
||||
}
|
||||
stage("Test PHP 7.4") {
|
||||
steps {
|
||||
node {
|
||||
script {
|
||||
docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
|
||||
docker.image("redis:latest").withRun("-p 6380:6379") { d ->
|
||||
docker.image("php:7.4").withRun("-e REDIS_HOST=redis -e REDIS_PORT=11212 -e MEMCACHED_HOST=mem -e MEMCACHED_PORT=6380 --link ${d.id}:redis --link ${c.id}:mem") { p ->
|
||||
@ -26,7 +26,7 @@ pipeline {
|
||||
}
|
||||
stage("Test PHP 8") {
|
||||
steps {
|
||||
node {
|
||||
script {
|
||||
docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
|
||||
docker.image("redis:latest").withRun("-p 6380:6379") { d ->
|
||||
docker.image("php:8").withRun("-e REDIS_HOST=redis -e REDIS_PORT=11212 -e MEMCACHED_HOST=mem -e MEMCACHED_PORT=6380 --link ${d.id}:redis --link ${c.id}:mem") { p ->
|
||||
@ -38,16 +38,14 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
steps {
|
||||
sh 'php composer.phar run-script coverage'
|
||||
step([
|
||||
$class: 'CloverPublisher',
|
||||
cloverReportDir: '',
|
||||
cloverReportFileName: 'build/logs/clover.xml',
|
||||
])
|
||||
}
|
||||
stage("Coverage") {
|
||||
steps {
|
||||
sh 'php composer.phar run-script coverage'
|
||||
step([
|
||||
$class: 'CloverPublisher',
|
||||
cloverReportDir: '',
|
||||
cloverReportFileName: 'build/logs/clover.xml',
|
||||
])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user