diff --git a/.travis.yml b/.travis.yml index 7744036..cccd2e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,20 @@ dist: trusty language: php -php: - - 5.5 - - 5.6 - - 7.0 - - 7.1 - - hhvm +matrix: + fast_finish: true + include: + - php: 5.5 + env: GRAPHQLPHP_VERSION=0.10.* + - php: 5.6 + env: GRAPHQLPHP_VERSION=0.10.* + - php: 5.6 + - php: 7.0 + - php: 7.1 + - php: hhvm + - php: nightly + allow_failures: + - php: nightly branches: only: @@ -19,11 +27,13 @@ cache: - $HOME/.composer/cache before_install: - - if [[ "$TRAVIS_PHP_VERSION" != "7.0" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi + - if [[ "$TRAVIS_PHP_VERSION" != "7.1" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi - composer selfupdate + - if [ "$GRAPHQLPHP_VERSION" != "" ]; then composer require "webonyx/graphql-php:${GRAPHQLPHP_VERSION}" --dev --no-update; fi; -install: composer update --prefer-dist --no-interaction +install: composer update --prefer-dist --no-interaction --optimize-autoloader script: ./bin/travis_phpunit after_script: - - if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi + - if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi + diff --git a/composer.json b/composer.json index 7a7773c..7eae0e5 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ }, "require": { "php": "^5.4|~7.0", - "webonyx/graphql-php": "0.10.*" + "webonyx/graphql-php": "^0.10.0 || ^0.11.0" }, "require-dev": { "fabpot/php-cs-fixer": "^1.11",