Skip to content

Commit 858e6f0

Browse files
committed
Fixed build process
Also git add builds.markdown automatically
1 parent 84733fc commit 858e6f0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

RoboFile.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,16 +461,18 @@ public function release()
461461
->symlink("../$versionedFile", 'php56/codecept.phar')
462462
->run();
463463

464+
$this->updateBuildsPage();
465+
464466
$this->taskGitStack()
465467
->stopOnFail()
466468
->checkout('-- package/composer.json')
469+
->add('builds.markdown')
467470
->add('codecept.phar')
468471
->add('codecept.version')
469472
->add('php56/codecept.phar')
470473
->add('php56/codecept.version')
471474
->add($releaseDir)
472475
->run();
473-
$this->updateBuildsPage();
474476
}
475477

476478
private function setPlatformVersionTo($version)
@@ -486,7 +488,10 @@ private function setPlatformVersionTo($version)
486488
public function buildPhar($targetFile)
487489
{
488490
$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();
490495
if ($code !== 0) {
491496
throw new Exception("There was problem compiling phar");
492497
}

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