Jenkinsfile fix
This commit is contained in:
parent
3cf8c8e2dd
commit
474fb24fd1
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -10,7 +10,7 @@ node {
|
|||||||
sh 'while ! mysqladmin ping -hdb --silent; do sleep 1; done'
|
sh 'while ! mysqladmin ping -hdb --silent; do sleep 1; done'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
docker.image('circleci/php:7.4').inside("--link ${c.id}:db") {
|
docker.image('circleci/php:7.4').inside("--user 0:0 --link ${c.id}:db") {
|
||||||
stage("Prepare container") { sh 'docker-php-ext-install -j$(nproc) pdo_mysql' }
|
stage("Prepare container") { sh 'docker-php-ext-install -j$(nproc) pdo_mysql' }
|
||||||
stage("Build") { sh 'composer install && mv .env.example .env' }
|
stage("Build") { sh 'composer install && mv .env.example .env' }
|
||||||
stage("Test") { sh 'vendor/bin/phpunit' }
|
stage("Test") { sh 'vendor/bin/phpunit' }
|
||||||
|
Loading…
Reference in New Issue
Block a user