Skip to content

Commit 28c4503

Browse files
committed
Add hoa/console to Codeception 4 builds only
1 parent 8b9af62 commit 28c4503

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

RoboFile.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,9 @@ public function buildPhar72()
500500
$this->stopOnFail();
501501

502502
$this->taskFilesystemStack()->mkdir('build/72')->run();
503+
$this->setCodeceptionVersionTo('^4.1');
503504
$this->setPlatformVersionTo('7.2.0');
505+
$this->requireHoaConsole();
504506
$buildFile = 'build/72/codecept.phar';
505507
$this->buildPhar($buildFile);
506508
$this->updateVersionFile($buildFile, 'codecept.version');
@@ -521,7 +523,9 @@ public function buildPhar56()
521523
$this->stopOnFail();
522524

523525
$this->taskFilesystemStack()->mkdir('build/56')->run();
526+
$this->setCodeceptionVersionTo('^4.1');
524527
$this->setPlatformVersionTo('5.6.4');
528+
$this->requireHoaConsole();
525529
//filenames must be different, because Phar refuses to build second file with the same name
526530
$buildFile = 'build/56/codecept.phar';
527531
$this->buildPhar($buildFile);
@@ -534,12 +538,14 @@ public function buildPhar56()
534538
->remove('php56/codecept.phar')
535539
->symlink("../$versionedFile", 'php56/codecept.phar')
536540
->run();
537-
538541
}
539542

540-
public function findReleases()
543+
private function requireHoaConsole(): void
541544
{
542-
545+
$this->taskComposerRequire()
546+
->dependency('hoa/console')
547+
->workingDir('package')
548+
->run();
543549
}
544550

545551
public function release()

package/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"codeception/module-sequence": "*",
2323
"codeception/module-soap": "*",
2424
"codeception/module-webdriver": "*",
25-
"hoa/console": "*",
2625
"laravel-zero/phar-updater": "^1.0"
2726
}
2827
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy