mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Adding gitlab collapsible tasks support. (#2718)
* Adding gitlab collapsible tasks support. * remove patch. Co-authored-by: Dan Shumaker <dshumaker@unleashed-technologies.com>
This commit is contained in:
parent
dc4a75ce3d
commit
d220ae6c8b
@ -40,6 +40,8 @@ class Messenger
|
||||
if (!$task->isShallow()) {
|
||||
if (getenv('GITHUB_WORKFLOW')) {
|
||||
$this->output->writeln("::group::task {$task->getName()}");
|
||||
} else if (getenv('GITLAB_CI')) {
|
||||
$this->output->writeln("\e[OKsection_start:task {$task->getName()}[collapsed=true]\r\e[OK{$task->getName()}");
|
||||
} else {
|
||||
$this->output->writeln("<fg=cyan;options=bold>task</> {$task->getName()}");
|
||||
}
|
||||
@ -67,6 +69,8 @@ class Messenger
|
||||
|
||||
if (getenv('GITHUB_WORKFLOW')) {
|
||||
$this->output->writeln("::endgroup::");
|
||||
} if (getenv('GITLAB_CI')) {
|
||||
$this->output->writeln("\e[OKsection_end:{$taskTime}:{$task->getName()}");
|
||||
} else if ($this->output->isVeryVerbose()) {
|
||||
$this->output->writeln("<fg=yellow;options=bold>done</> {$task->getName()} $taskTime");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user