Skip to content

Commit

Permalink
Build Phar file using Box
Browse files Browse the repository at this point in the history
  • Loading branch information
Gasol Wu authored and Gasol committed Sep 21, 2018
1 parent b1604a9 commit 2295905
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ matrix:
env:
- DEPS=lowest
- php: 7.1
env:
- BUILD_PHAR=true
- php: 7.1
env:
- PHPUNIT_DEV=true
Expand All @@ -38,6 +40,7 @@ script:

after_script:
- if [[ $CODE_COVERAGE == 'true' ]]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;
- if [[ $BUILD_PHAR == 'true' ]]; then curl -LSs https://box-project.github.io/box2/installer.php | php; php -d phar.readonly=0 box.phar build -c box.json.dist; fi;

notifications:
email: false
27 changes: 27 additions & 0 deletions box.json.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"alias": "paratest.phar",
"chmod": "0755",
"compactors": [
"Herrera\\Box\\Compactor\\Json",
"Herrera\\Box\\Compactor\\Php"
],
"directories": [
"src"
],
"finder": [
{
"name": "*.php",
"exclude": [
"friendsofphp"
],
"in": "vendor"
}
],
"files": [
"LICENSE"
],
"git-version": "git-version",
"main": "bin/paratest",
"output": "paratest-@[email protected]",
"stub": true
}

0 comments on commit 2295905

Please sign in to comment.