Jenkinsfile fix

This commit is contained in:
Artur Nowakowski 2019-11-30 18:38:04 +01:00
parent d64fe889a8
commit 14aeec3652

3
Jenkinsfile vendored
View File

@ -11,7 +11,8 @@ node {
} }
} }
docker.image('circleci/php:7.4').inside("--link ${c.id}:db") { docker.image('circleci/php:7.4').inside("--link ${c.id}:db") {
stage("Build") { sh 'ls -alh && composer install && mv .env.example .env' } stage("Prepare container") { sh 'apt-get update && apt-get install -y php-mysql' }
stage("Build") { sh 'composer install && mv .env.example .env' }
stage("Test") { sh 'vendor/bin/phpunit' } stage("Test") { sh 'vendor/bin/phpunit' }
} }
} }