Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #44 from webimpress/feature/php-7.2
Browse files Browse the repository at this point in the history
Added PHP 7.2 support & HHVM dropped
  • Loading branch information
michalbundyra committed Jan 17, 2018
2 parents ffc5694 + dd06075 commit de08a45
Show file tree
Hide file tree
Showing 3 changed files with 826 additions and 673 deletions.
42 changes: 22 additions & 20 deletions .travis.yml
Expand Up @@ -8,13 +8,12 @@ services:
cache:
directories:
- $HOME/.composer/cache
- vendor

env:
global:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
- COMPOSER_ARGS="--no-interaction"
- ADAPTER_DEPS="alcaeus/mongo-php-adapter"
- COVERAGE_DEPS="satooshi/php-coveralls"
- COVERAGE_DEPS="php-coveralls/php-coveralls"
- MONGO_DRIVER=mongo

matrix:
Expand All @@ -25,7 +24,7 @@ matrix:
- php: 5.6
env:
- DEPS=locked
- TEST_COVERAGE=true
- LEGACY_DEPS="doctrine/doctrine-module doctrine/doctrine-orm-module phpunit/phpunit"
- php: 5.6
env:
- DEPS=latest
Expand All @@ -36,7 +35,7 @@ matrix:
- php: 7
env:
- DEPS=locked
- CS_CHECK=true
- LEGACY_DEPS="doctrine/doctrine-module doctrine/doctrine-orm-module phpunit/phpunit"
- MONGO_DRIVER=mongodb
- php: 7
env:
Expand All @@ -49,43 +48,46 @@ matrix:
- php: 7.1
env:
- DEPS=locked
- CS_CHECK=true
- TEST_COVERAGE=true
- MONGO_DRIVER=mongodb
- php: 7.1
env:
- DEPS=latest
- MONGO_DRIVER=mongodb
- php: hhvm
- php: 7.2
env:
- DEPS=lowest
- php: hhvm
- MONGO_DRIVER=mongodb
- php: 7.2
env:
- DEPS=locked
- php: hhvm
- MONGO_DRIVER=mongodb
- php: 7.2
env:
- DEPS=latest
allow_failures:
- php: hhvm

notifications:
irc: "irc.freenode.org#apigility-dev"
email: false
- MONGO_DRIVER=mongodb

before_install:
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- travis_retry composer self-update

install:
- yes '' | pecl -q install -f $MONGO_DRIVER
- if [[ $MONGO_DRIVER == 'mongodb' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $ADAPTER_DEPS ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- composer config platform.ext-mongo '1.999'
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- travis_retry composer install $COMPOSER_ARGS
- composer show
- if [[ $MONGO_DRIVER == 'mongodb' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $ADAPTER_DEPS ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120 && composer show

script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi

notifications:
email: false
27 changes: 15 additions & 12 deletions composer.json
@@ -1,21 +1,25 @@
{
"name": "zfcampus/zf-doctrine-querybuilder",
"description": "Apigility Doctrine QueryBuilder module",
"type": "library",
"license": "BSD-3-Clause",
"keywords": [
"api",
"apigility",
"doctrine",
"filter",
"zend",
"zendframework",
"zf"
],
"homepage": "https://apigility.org",
"support": {
"irc": "irc://irc.freenode.net/apigility",
"issues": "https://github.com/zfcampus/zf-doctrine-querybuilder/issues",
"source": "https://github.com/zfcampus/zf-doctrine-querybuilder",
"issues": "https://github.com/zfcampus/zf-doctrine-querybuilder/issues"
"rss": "https://github.com/zfcampus/zf-doctrine-querybuilder/releases.atom",
"slack": "https://zendframework-slack.herokuapp.com",
"forum": "https://discourse.zendframework.com/c/questions/apigility"
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
Expand All @@ -33,17 +37,17 @@
"doctrine/doctrine-module": "^1.2",
"zendframework/zend-hydrator": "^1.1 || ^2.2.1",
"zendframework/zend-modulemanager": "^2.7.2",
"zendframework/zend-mvc": "^2.7.10 || ^3.0.2",
"zendframework/zend-mvc": "^2.7.13 || ^3.0.2",
"zendframework/zend-servicemanager": "^2.7.6 || ^3.1.1",
"zfcampus/zf-api-problem": "^1.2.2",
"zfcampus/zf-apigility-doctrine": "^2.1",
"zfcampus/zf-hal": "^1.4.2"
},
"require-dev": {
"phpunit/phpunit": "^5.6",
"zendframework/zend-coding-standard": "~1.0.0",
"doctrine/doctrine-mongo-odm-module": "^0.11",
"doctrine/doctrine-mongo-odm-module": "^1.0",
"doctrine/doctrine-orm-module": "^1.1",
"phpunit/phpunit": "^5.7.26",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-i18n": "^2.7.3",
"zendframework/zend-log": "^2.9.1",
"zendframework/zend-serializer": "^2.8",
Expand All @@ -52,7 +56,7 @@
},
"suggest": {
"ext/mongo": "Mongo extension, if using ODM",
"doctrine/doctrine-mongo-odm-module": "^0.11, if you wish to use the Doctrine ODM",
"doctrine/doctrine-mongo-odm-module": "^1.0, if you wish to use the Doctrine ODM",
"doctrine/doctrine-orm-module": "^1.1, if you wish to use the Doctrine ORM"
},
"autoload": {
Expand All @@ -70,10 +74,9 @@
"@cs-check",
"@test"
],
"upload-coverage": "coveralls -v",
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit",
"test-coverage": "phpunit --coverage-clover clover.xml"
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
}

0 comments on commit de08a45

Please sign in to comment.