Skip to content

Commit aff4e5f

Browse files
committed
Fixes acquia#1535: Pipelines Build Fail to Complete on 8.9.x.
1 parent 2921b07 commit aff4e5f

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

src/Robo/BltTasks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ protected function invokeHook($hook) {
153153
$result = $this->taskExecStack()
154154
->exec($this->getConfigValue("target-hooks.$hook.command"))
155155
->dir($this->getConfigValue("target-hooks.$hook.dir"))
156-
->interactive()
156+
->detectInteractive()
157157
->printOutput(TRUE)
158158
->printMetadata(FALSE)
159159
->stopOnFail()
@@ -196,7 +196,7 @@ protected function executeCommandInDrupalVm($command) {
196196
$result = $this->taskExecStack()
197197
->exec("vagrant exec --tty '$command'")
198198
->dir($this->getConfigValue('repo.root'))
199-
->interactive(TRUE)
199+
->detectInteractive()
200200
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
201201
->run();
202202

src/Robo/Commands/Blt/AliasCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ protected function updateAlias() {
107107
* @param int $start_pos
108108
* The position of the opening bracket in the string that should be matched.
109109
*
110-
* @return int|null
110+
* @return int|NULL
111+
*
111112
*/
112113
protected function getClosingBracketPosition($contents, $start_pos) {
113114
$brackets = ['{'];

src/Robo/Commands/Setup/BuildCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function build() {
104104

105105
if ($this->getConfig()->has('simplesamlphp') && $this->getConfigValue('simplesamlphp')) {
106106
$result = $this->taskExec($this->getConfigValue('composer.bin') . "blt simplesamlphp:build:config")
107-
->interactive()
107+
->detectInteractive()
108108
->dir($this->getConfigValue('repo.root'))
109109
->run();
110110
}
@@ -122,7 +122,7 @@ public function build() {
122122
public function composerInstall() {
123123
$result = $this->taskExec("export COMPOSER_EXIT_ON_PATCH_FAILURE=1; composer install --ansi --no-interaction")
124124
->dir($this->getConfigValue('repo.root'))
125-
->interactive()
125+
->detectInteractive()
126126
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
127127
->run();
128128

src/Robo/Commands/Setup/DrupalCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function ($string) {
5151
$task->option('config-dir', $this->getConfigValue("cm.core.dirs.$cm_core_key.path"));
5252
}
5353

54-
$result = $task->interactive()->run();
54+
$result = $task->detectInteractive()->run();
5555
if ($result->wasSuccessful()) {
5656
$this->getConfig()->set('state.drupal.installed', TRUE);
5757
}

src/Robo/Wizards/SetupWizard.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function wizardInstallDrupal() {
4242
$bin = $this->getConfigValue('composer.bin');
4343
$this->executor
4444
->execute("$bin/blt setup")
45-
->interactive(TRUE)
45+
->detectInteractive()
4646
->run();
4747
}
4848
}

0 commit comments

Comments
 (0)