Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,15 +475,15 @@ private function postProcessFile($pageName, $documentationFile)
file_put_contents($documentationFile, $contents);
}

public function release()
public function buildPhar72()
{
$version = self::STABLE_BRANCH . '.' . date('Ymd');
$version = self::STABLE_BRANCH . '.' . date('Ymd');
$releaseDir = "releases/$version";
$this->stopOnFail();

$this->taskFilesystemStack()->mkdir('build')->run();
$releaseDir = "releases/$version";
$this->taskFilesystemStack()->mkdir('build/72')->run();
$this->setPlatformVersionTo('7.2.0');
$buildFile = 'build/codecept72.phar';
$buildFile = 'build/72/codecept.phar';
$this->buildPhar($buildFile);
$this->updateVersionFile($buildFile, 'codecept.version');
$versionedFile = "$releaseDir/codecept.phar";
Expand All @@ -494,10 +494,18 @@ public function release()
->remove('codecept.phar')
->symlink($versionedFile, 'codecept.phar')
->run();
}

public function buildPhar56()
{
$version = self::STABLE_BRANCH . '.' . date('Ymd');
$releaseDir = "releases/$version";
$this->stopOnFail();

$this->taskFilesystemStack()->mkdir('build/56')->run();
$this->setPlatformVersionTo('5.6.0');
//filenames must be different, because Phar refuses to build second file with the same name
$buildFile = 'build/codecept56.phar';
$buildFile = 'build/56/codecept.phar';
$this->buildPhar($buildFile);
$this->updateVersionFile($buildFile, 'php56/codecept.version');
$versionedFile = "$releaseDir/php56/codecept.phar";
Expand All @@ -509,6 +517,12 @@ public function release()
->symlink("../$versionedFile", 'php56/codecept.phar')
->run();

}

public function release()
{
$version = self::STABLE_BRANCH . '.' . date('Ymd');
$releaseDir = "releases/$version";
$this->updateBuildsPage();

$this->taskGitStack()
Expand Down
3 changes: 2 additions & 1 deletion builds.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ title: Codeception Builds
## 4.0
*Requires: PHP 5.6 and higher + CURL*

* **[Download Latest 4.0 Release](http://codeception.com/releases/4.0.20191220/codecept.phar)**
* **[Download Latest 4.0 Release](http://codeception.com/releases/4.0.20191223/codecept.phar)**
* [4.0.20191223 for PHP 7.2+](http://codeception.com/releases/4.0.20191223/codecept.phar), [for PHP 5.6 - 7.1](http://codeception.com/releases/4.0.20191223/php56/codecept.phar)
* [4.0.20191220 for PHP 7.2+](http://codeception.com/releases/4.0.20191220/codecept.phar), [for PHP 5.6 - 7.1](http://codeception.com/releases/4.0.20191220/php56/codecept.phar)
* [4.0.20191219 for PHP 7.2+](http://codeception.com/releases/4.0.20191219/codecept.phar), [for PHP 5.6 - 7.1](http://codeception.com/releases/4.0.20191219/php56/codecept.phar)

Expand Down
2 changes: 1 addition & 1 deletion codecept.phar
2 changes: 1 addition & 1 deletion codecept.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f6479369e3dfedf931610ec83f2b10553871aad1
b35a7035dd348201712f02270ecf054a1c8e754f
10 changes: 9 additions & 1 deletion package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@ Modules excluded from phar file:
* zf2

Additional dependency compared with codeception/codecepion:
* hoa/console
* hoa/console

### Build instructions
1. Download robo.phar file wget https://robo.li/robo.phar
2. Disable phar.readonly in your php.ini file, it must be `phar.readonly = Off`
3. Run `php robo.phar build:php72`
4. Run `php robo.phar build:php56`
5. Run `php robo.phar release`
6. Commit added files and push
2 changes: 1 addition & 1 deletion package/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license":"MIT",

"require": {
"codeception/codeception": "4.0.x-dev | >=4.0",
"codeception/codeception": "^4.0",
"codeception/module-amqp": "*",
"codeception/module-apc": "*",
"codeception/module-asserts": "*",
Expand Down
2 changes: 1 addition & 1 deletion package/stub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env php
<?php
Phar::mapPhar();
Phar::mapPhar('codecept.phar');

require_once 'phar://codecept.phar/vendor/codeception/codeception/app.php';

Expand Down
2 changes: 1 addition & 1 deletion php56/codecept.phar
2 changes: 1 addition & 1 deletion php56/codecept.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13be081565cdbce14a7e4ac12cf9e393d63a29e9
c84e658f8c6ae9603eecdf789ff8a8d7302601ce
Binary file added releases/4.0.20191223/codecept.phar
Binary file not shown.
Binary file added releases/4.0.20191223/php56/codecept.phar
Binary file not shown.