@@ -500,7 +500,9 @@ public function buildPhar72()
500
500
$ this ->stopOnFail ();
501
501
502
502
$ this ->taskFilesystemStack ()->mkdir ('build/72 ' )->run ();
503
+ $ this ->setCodeceptionVersionTo ('^4.1 ' );
503
504
$ this ->setPlatformVersionTo ('7.2.0 ' );
505
+ $ this ->requireHoaConsole ();
504
506
$ buildFile = 'build/72/codecept.phar ' ;
505
507
$ this ->buildPhar ($ buildFile );
506
508
$ this ->updateVersionFile ($ buildFile , 'codecept.version ' );
@@ -521,7 +523,9 @@ public function buildPhar56()
521
523
$ this ->stopOnFail ();
522
524
523
525
$ this ->taskFilesystemStack ()->mkdir ('build/56 ' )->run ();
526
+ $ this ->setCodeceptionVersionTo ('^4.1 ' );
524
527
$ this ->setPlatformVersionTo ('5.6.4 ' );
528
+ $ this ->requireHoaConsole ();
525
529
//filenames must be different, because Phar refuses to build second file with the same name
526
530
$ buildFile = 'build/56/codecept.phar ' ;
527
531
$ this ->buildPhar ($ buildFile );
@@ -534,12 +538,14 @@ public function buildPhar56()
534
538
->remove ('php56/codecept.phar ' )
535
539
->symlink ("../ $ versionedFile " , 'php56/codecept.phar ' )
536
540
->run ();
537
-
538
541
}
539
542
540
- public function findReleases ()
543
+ private function requireHoaConsole (): void
541
544
{
542
-
545
+ $ this ->taskComposerRequire ()
546
+ ->dependency ('hoa/console ' )
547
+ ->workingDir ('package ' )
548
+ ->run ();
543
549
}
544
550
545
551
public function release ()
0 commit comments