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