Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/.idea/*
/.DS_Store
/phpunit.phar
/box.phar
/composer.phar
/php-cs-fixer.phar
/phpunit.xml
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ all:test
setup:
$(PHP_BIN) -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
$(CURL_BIN) -SsLO https://phar.phpunit.de/phpunit.phar
$(CURL_BIN) -LSs https://box-project.github.io/box2/installer.php | $(PHP_BIN)

install:
$(PHP_BIN) composer.phar install
Expand All @@ -21,7 +22,7 @@ testrunner:
guard -i

compile:
$(PHP_BIN) dbup compile
$(PHP_BIN) box.phar build

changelog:
git log --pretty=format:" * %h %s" $(SINCE)..$(UNTIL) -- src tests
16 changes: 16 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"output": "dbup.phar",
"chmod": "0755",
"extract": false,
"files": [
"LICENCE"
],
"finder": [
{
"name": ["*.php"],
"exclude": ["Tests", "tests"],
"in": ["vendor", "src"]
}
],
"stub": "src/Dbup/Resources/phar-stub.php"
}
Binary file modified dbup.phar
Binary file not shown.
43 changes: 0 additions & 43 deletions src/Dbup/Command/CompileCommand.php

This file was deleted.

17 changes: 17 additions & 0 deletions src/Dbup/Resources/phar-stub.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env php
<?php
/*
* This file is part of Dbup.
*
* (c) Masao Maeda <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
Phar::mapPhar('dbup.phar');
require_once 'phar://dbup.phar/vendor/autoload.php';
use Dbup\Application;
$application = new Application();
$application->run();

__HALT_COMPILER();
66 changes: 0 additions & 66 deletions src/Dbup/Util/Compiler.php

This file was deleted.