Skip to content

Commit 2b61bf2

Browse files
committed
Merge pull request #57 from api-platform/box
Add Box support (PHAR)
2 parents f33313c + 54440e1 commit 2b61bf2

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/composer.phar
22
/composer.lock
3+
/box.phar
34
/vendor
45
/build
6+
/schema.phar

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,27 @@ matrix:
1313
- php: '5.5'
1414
- php: '5.6'
1515
- php: '7.0'
16-
- php: hhvm
16+
- php: 'hhvm'
1717

1818
before_install:
1919
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi;
20-
- composer self-update
20+
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then curl -LSs https://box-project.github.io/box2/installer.php | php; fi;
2121

2222
install:
2323
- composer update --no-interaction --prefer-dist
24+
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php box.phar build; fi;
2425

2526
script:
2627
- phpunit
2728
- tests/run-tests.sh
29+
30+
deploy:
31+
provider: releases
32+
api_key:
33+
secure: Oq9TAPQZqnjxhbprWZQE64GhK4vxBHjvcMkS9dkbkCJQVz8cSqGxZOFqMOHulraFs2IX9PLeplrZReFMT630KkMNf74mkTtL9WMuaMJV0bbUPY+X7YpDGlLNNU7OA9Rxjr3y68x1jVxD6mLSlCFZP00qvmYRlOE1i2ltjO7L5Sw=
34+
file: schema.phar
35+
skip_cleanup: true
36+
on:
37+
tags: true
38+
repo: api-platform/schema-generator
39+
php: '5.6'

box.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"directories": ["src/"],
3+
"finder": [
4+
{
5+
"name": "*.php",
6+
"exclude": [
7+
".gitignore",
8+
".md",
9+
"phpunit",
10+
"Tester",
11+
"Tests",
12+
"tests"
13+
],
14+
"in": "vendor"
15+
}
16+
],
17+
"compactors": [
18+
"Herrera\\Box\\Compactor\\Json",
19+
"Herrera\\Box\\Compactor\\Php"
20+
],
21+
"git-version": "package_version",
22+
"main": "bin/schema",
23+
"output": "schema.phar",
24+
"stub": true,
25+
"chmod": "0755"
26+
}

0 commit comments

Comments
 (0)