Skip to content

Commit

Permalink
Upgrade Travis build and minimum dependency versions
Browse files Browse the repository at this point in the history
PHP 5.4+ can use phpunit v4.8.26 without generating any warnings.
HHVM cannot use phpunit v4.8.26
HHVM CAN use phpunit v5.4.6, but produces deprecated warnings - warnings only that are resolvable and do not interfere with the build or code coverage.

To achieve this, a build matrix is used such that PHP uses --prefer-lowest (which is phpunit v4.8.26) and HHVM uses the most recent version (phpunit v5.4.6 at this moment in time).
  • Loading branch information
rquadling committed Jul 4, 2016
1 parent 018a760 commit 51bda5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
Expand Up @@ -12,9 +12,20 @@ php:
- 7
- hhvm

env:
- COMPOSER_FLAGS=--prefer-lowest

matrix:
exclude:
- php: hhvm
env: COMPOSER_FLAGS=--prefer-lowest
include:
- php: hhvm
env: COMPOSER_FLAGS=

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source --prefer-stable
- travis_retry composer update --no-interaction --prefer-source --prefer-stable ${COMPOSER_FLAGS}
- mysql -e 'create database phinx_testing;'
- psql -c 'create database phinx_testing;' -U postgres

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -27,7 +27,7 @@
"symfony/yaml": "~2.8|~3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0|^5.0"
"phpunit/phpunit": "^4.8.26|^5.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 51bda5c

Please sign in to comment.