Attempt to run CI in stages
Some checks failed
Gitea - aviat/banker/pipeline/head There was a failure building this commit
Some checks failed
Gitea - aviat/banker/pipeline/head There was a failure building this commit
This commit is contained in:
parent
1a4553cb4c
commit
1fe72c7212
42
Jenkinsfile
vendored
42
Jenkinsfile
vendored
@ -12,11 +12,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("Test PHP 7.4") {
|
stage("Test PHP 7.4") {
|
||||||
steps {
|
steps {
|
||||||
docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
|
node {
|
||||||
docker.image("redis:latest").withRun("-p 6380:6379") { d ->
|
docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
|
||||||
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("redis:latest").withRun("-p 6380:6379") { d ->
|
||||||
sh "sh build/docker_install.sh"
|
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 ->
|
||||||
sh "php ./vendor/bin/phpunit -c build --no-coverage --colors=never"
|
sh "sh build/docker_install.sh"
|
||||||
|
sh "php ./vendor/bin/phpunit -c build --no-coverage --colors=never"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -24,24 +26,28 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("Test PHP 8") {
|
stage("Test PHP 8") {
|
||||||
steps {
|
steps {
|
||||||
docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
|
node {
|
||||||
docker.image("redis:latest").withRun("-p 6380:6379") { d ->
|
docker.image("memcached:latest").withRun("-p 11212:11211") { c ->
|
||||||
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("redis:latest").withRun("-p 6380:6379") { d ->
|
||||||
sh "sh build/docker_install.sh"
|
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 ->
|
||||||
sh "php ./vendor/bin/phpunit -c build --no-coverage --colors=never"
|
sh "sh build/docker_install.sh"
|
||||||
|
sh "php ./vendor/bin/phpunit -c build --no-coverage --colors=never"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Coverage") {
|
post {
|
||||||
steps {
|
success {
|
||||||
sh 'php composer.phar run-script coverage'
|
steps {
|
||||||
step([
|
sh 'php composer.phar run-script coverage'
|
||||||
$class: 'CloverPublisher',
|
step([
|
||||||
cloverReportDir: '',
|
$class: 'CloverPublisher',
|
||||||
cloverReportFileName: 'build/logs/clover.xml',
|
cloverReportDir: '',
|
||||||
])
|
cloverReportFileName: 'build/logs/clover.xml',
|
||||||
|
])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user