-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
154 changed files
with
4,643 additions
and
4,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,9 @@ | |
/.altax | ||
/build | ||
/tests/tmp/* | ||
/altax.phar | ||
.DS_Store | ||
Thumbs.db | ||
.tags | ||
.tags_sorted_by_file | ||
._* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
altax | ||
* [altax] sudo ln -s `pwd`/bin/altax /usr/local/bin/altax | ||
* [altax] php vendor/bin/phpunit | ||
* [altax] php vendor/bin/php-cs-fixer fix src | ||
* [altax] php vendor/bin/phpunit tests/e2e/E2eTest.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
|
||
before_script: | ||
- composer install --dev --no-interaction | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,11 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
|
||
if (PHP_SAPI !== 'cli') { | ||
echo 'Warning: Altax should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL; | ||
} | ||
|
||
error_reporting(-1); | ||
|
||
// This code references Composer. | ||
if (function_exists('ini_set')) { | ||
@ini_set('display_errors', 1); | ||
|
||
$memoryInBytes = function ($value) { | ||
$unit = strtolower(substr($value, -1, 1)); | ||
$value = (int) $value; | ||
switch($unit) { | ||
case 'g': | ||
$value *= 1024; | ||
// no break (cumulative multiplier) | ||
case 'm': | ||
$value *= 1024; | ||
// no break (cumulative multiplier) | ||
case 'k': | ||
$value *= 1024; | ||
} | ||
|
||
return $value; | ||
}; | ||
|
||
$memoryLimit = trim(ini_get('memory_limit')); | ||
// Increase memory_limit if it is lower than 512M | ||
if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 512 * 1024 * 1024) { | ||
@ini_set('memory_limit', '512M'); | ||
} | ||
unset($memoryInBytes, $memoryLimit); | ||
} | ||
|
||
|
||
if (is_file(__DIR__ . '/../vendor/autoload.php')) { | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
|
||
} else if (is_file(__DIR__ . '/../../../autoload.php')) { | ||
|
||
require_once __DIR__ . '/../../../autoload.php'; | ||
|
||
} else if (is_file(__DIR__ . '/../autoload.php')) { | ||
|
||
require_once __DIR__ . '/../autoload.php'; | ||
|
||
} | ||
|
||
$container = require_once __DIR__.'/../src/Altax/Foundation/boot.php'; | ||
|
||
$app = new \Altax\Console\Application($container); | ||
$app->run(); | ||
require_once __DIR__.'/../vendor/autoload.php'; | ||
|
||
$app = bootAltaxApplication(array( | ||
getenv("HOME")."/.altax/bootstrap.php", | ||
getcwd()."/.altax/bootstrap.php", | ||
)); | ||
$cli = new \Altax\Console\Application($app); | ||
$cli->run(); |
Oops, something went wrong.