Skip to content

Commit

Permalink
Use box to build phar
Browse files Browse the repository at this point in the history
  • Loading branch information
jeboehm committed Aug 26, 2018
1 parent 64de8c5 commit 5a34c93
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 847 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ php:
- 7.2

script:
- composer install --dev
- composer install
- bin/console
- bin/build
- composer run build

deploy:
provider: releases
Expand Down
11 changes: 0 additions & 11 deletions bin/build

This file was deleted.

19 changes: 19 additions & 0 deletions box.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"chmod": "0755",
"main": "bin/console",
"output": "imap-tester.phar",
"directories": [
"src"
],
"finder": [
{
"name": "*.php",
"exclude": [
"test",
"tests"
],
"in": "vendor"
}
],
"stub": true
}
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"require": {
"php": "^7.0",
"ext-imap": "*",
"symfony/console": "~2.1",
"symfony/console": "~4.1",
"php-imap/php-imap": "~3.0"
},
"license": "MIT",
Expand All @@ -19,10 +19,11 @@
"": "src/"
}
},
"bin": [
"bin/console"
],
"require-dev": {
"clue/phar-composer": "~1.0"
"scripts": {
"build": [
"curl -LSs https://box-project.github.io/box2/installer.php | php",
"./box.phar --version",
"php -d phar.readonly=off ./box.phar build"
]
}
}
Loading

0 comments on commit 5a34c93

Please sign in to comment.