Skip to content

Commit 56ed8ea

Browse files
committed
Fix reports deploy
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent d1d0a2a commit 56ed8ea

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

src/Command/ReportsCommand.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4949
{
5050
$output->writeln('<info>Generating frontpage for Fast Forward documentation...</info>');
5151

52-
$this->runCommand('tests', [
53-
'coverage' => $this->getAbsolutePath('public/coverage'),
54-
], $output);
55-
$this->runCommand('docs', [
56-
'target' => $this->getAbsolutePath('public/api'),
57-
], $output);
52+
$docsPath = $this->getAbsolutePath('./public/api');
53+
$coveragePath = $this->getAbsolutePath('./public/coverage');
54+
55+
$output->writeln('<info>Generating API documentation on path: ' . $docsPath . '</info>');
56+
$this->runCommand('docs', ['target' => $docsPath], $output);
57+
58+
$output->writeln('<info>Generating test coverage report on path: ' . $coveragePath . '</info>');
59+
$this->runCommand('tests', ['coverage' => $coveragePath], $output);
5860

5961
$this->generateFrontpage();
6062

@@ -77,7 +79,7 @@ private function generateFrontpage(): void
7779
]
7880
);
7981

80-
$this->filesystem->dumpFile($this->getAbsolutePath('public/index.html'), $html);
82+
$this->filesystem->dumpFile($this->getAbsolutePath('./public/index.html'), $html);
8183
}
8284

8385
/**
@@ -93,7 +95,7 @@ private function renderTemplate(string $title, array $links): string
9395
'title' => $title,
9496
'links' => $links,
9597
]);
96-
include $this->getAbsolutePath('resources/index.php');
98+
include $this->getAbsolutePath('./resources/index.php');
9799

98100
return ob_get_clean();
99101
}

0 commit comments

Comments
 (0)