Show the output of commands in the bootstrap file

This commit is contained in:
Yassine Guedidi 2024-01-07 22:47:00 +01:00
parent 99ad390144
commit 369e7b6e04

View file

@ -13,14 +13,18 @@ require __DIR__ . '/../vendor/autoload.php';
'doctrine:database:drop',
'--force',
'--env=test',
]))->run();
]))->run(function ($type, $buffer) {
echo $buffer;
});
(new Process([
'php',
__DIR__ . '/../bin/console',
'doctrine:database:create',
'--env=test',
]))->mustRun();
]))->mustRun(function ($type, $buffer) {
echo $buffer;
});
(new Process([
'php',
@ -29,7 +33,9 @@ require __DIR__ . '/../vendor/autoload.php';
'--no-interaction',
'--env=test',
'-vv',
]))->mustRun();
]))->mustRun(function ($type, $buffer) {
echo $buffer;
});
(new Process([
'php',
@ -37,4 +43,6 @@ require __DIR__ . '/../vendor/autoload.php';
'doctrine:fixtures:load',
'--no-interaction',
'--env=test',
]))->mustRun();
]))->mustRun(function ($type, $buffer) {
echo $buffer;
});