Skip to content

Commit

Permalink
Merge pull request #16 from renatomefi/update/graphqlphp-0.11
Browse files Browse the repository at this point in the history
Supporing webonyx/graphql-php ^0.11.0
  • Loading branch information
mcg-web authored Sep 21, 2017
2 parents bf5fe88 + 00f51d3 commit bca60ad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 19 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bca60ad

Please sign in to comment.