Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/composer.phar
/composer.lock
/box.phar
/vendor
/build
/schema.phar
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,27 @@ matrix:
- php: '5.5'
- php: '5.6'
- php: '7.0'
- php: hhvm
- php: 'hhvm'

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

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

script:
- phpunit
- tests/run-tests.sh

deploy:
provider: releases
api_key:
secure: Oq9TAPQZqnjxhbprWZQE64GhK4vxBHjvcMkS9dkbkCJQVz8cSqGxZOFqMOHulraFs2IX9PLeplrZReFMT630KkMNf74mkTtL9WMuaMJV0bbUPY+X7YpDGlLNNU7OA9Rxjr3y68x1jVxD6mLSlCFZP00qvmYRlOE1i2ltjO7L5Sw=
file: schema.phar
skip_cleanup: true
on:
tags: true
repo: api-platform/schema-generator
php: '5.6'
26 changes: 26 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"directories": ["src/"],
"finder": [
{
"name": "*.php",
"exclude": [
".gitignore",
".md",
"phpunit",
"Tester",
"Tests",
"tests"
],
"in": "vendor"
}
],
"compactors": [
"Herrera\\Box\\Compactor\\Json",
"Herrera\\Box\\Compactor\\Php"
],
"git-version": "package_version",
"main": "bin/schema",
"output": "schema.phar",
"stub": true,
"chmod": "0755"
}