File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -461,16 +461,18 @@ public function release()
461
461
->symlink ("../ $ versionedFile " , 'php56/codecept.phar ' )
462
462
->run ();
463
463
464
+ $ this ->updateBuildsPage ();
465
+
464
466
$ this ->taskGitStack ()
465
467
->stopOnFail ()
466
468
->checkout ('-- package/composer.json ' )
469
+ ->add ('builds.markdown ' )
467
470
->add ('codecept.phar ' )
468
471
->add ('codecept.version ' )
469
472
->add ('php56/codecept.phar ' )
470
473
->add ('php56/codecept.version ' )
471
474
->add ($ releaseDir )
472
475
->run ();
473
- $ this ->updateBuildsPage ();
474
476
}
475
477
476
478
private function setPlatformVersionTo ($ version )
@@ -486,7 +488,10 @@ private function setPlatformVersionTo($version)
486
488
public function buildPhar ($ targetFile )
487
489
{
488
490
$ this ->packPhar ($ targetFile );
489
- $ code = $ this ->taskExec ('php ' . basename ($ targetFile ))->dir (dirname ($ targetFile ))->run ()->getExitCode ();
491
+ $ dir = dirname ($ targetFile );
492
+ //the file must be named codecept.phar to be executable
493
+ $ this ->taskFilesystemStack ()->copy ($ targetFile , $ dir . '/codecept.phar ' )->run ();
494
+ $ code = $ this ->taskExec ('php codecept.phar ' )->dir ($ dir )->run ()->getExitCode ();
490
495
if ($ code !== 0 ) {
491
496
throw new Exception ("There was problem compiling phar " );
492
497
}
You can’t perform that action at this time.
0 commit comments