Attempt to run CI in stages
Some checks failed
Gitea - aviat/banker/pipeline/head There was a failure building this commit

This commit is contained in:
Timothy Warren 2021-02-05 16:12:53 -05:00
parent 1a4553cb4c
commit 1fe72c7212

8
Jenkinsfile vendored
View File

@ -12,6 +12,7 @@ pipeline {
} }
stage("Test PHP 7.4") { stage("Test PHP 7.4") {
steps { steps {
node {
docker.image("memcached:latest").withRun("-p 11212:11211") { c -> docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
docker.image("redis:latest").withRun("-p 6380:6379") { d -> 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 -> 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 ->
@ -22,8 +23,10 @@ pipeline {
} }
} }
} }
}
stage("Test PHP 8") { stage("Test PHP 8") {
steps { steps {
node {
docker.image("memcached:latest").withRun("-p 11212:11211") { c -> docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
docker.image("redis:latest").withRun("-p 6380:6379") { d -> 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 -> 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 ->
@ -34,7 +37,9 @@ pipeline {
} }
} }
} }
stage("Coverage") { }
post {
success {
steps { steps {
sh 'php composer.phar run-script coverage' sh 'php composer.phar run-script coverage'
step([ step([
@ -45,4 +50,5 @@ pipeline {
} }
} }
} }
}
} }