Skip to content

Commit

Permalink
Merge pull request #705 from Majkl578/phar-platform
Browse files Browse the repository at this point in the history
Set lowest allowed PHP before generating PHAR
  • Loading branch information
jwage authored May 30, 2018
2 parents d71bbdd + 2862a57 commit f5e9c13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ cache:
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- travis_retry composer self-update
- travis_retry composer config --unset platform.php

install:
- rm composer.lock
Expand Down
6 changes: 6 additions & 0 deletions build-phar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

./download-box.sh

# lock PHP to minimum allowed version
composer config platform.php 7.1.0
composer update

php box.phar compile -vv

composer config --unset platform
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,5 @@
},
"bin": [
"bin/doctrine-migrations"
],
"platform": {
"php": "7.1.x"
}
]
}

0 comments on commit f5e9c13

Please sign in to comment.