Skip to content

Commit bca60ad

Browse files
authored
Merge pull request #16 from renatomefi/update/graphqlphp-0.11
Supporing webonyx/graphql-php ^0.11.0
2 parents bf5fe88 + 00f51d3 commit bca60ad

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.travis.yml

+19-9
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@ dist: trusty
22

33
language: php
44

5-
php:
6-
- 5.5
7-
- 5.6
8-
- 7.0
9-
- 7.1
10-
- hhvm
5+
matrix:
6+
fast_finish: true
7+
include:
8+
- php: 5.5
9+
env: GRAPHQLPHP_VERSION=0.10.*
10+
- php: 5.6
11+
env: GRAPHQLPHP_VERSION=0.10.*
12+
- php: 5.6
13+
- php: 7.0
14+
- php: 7.1
15+
- php: hhvm
16+
- php: nightly
17+
allow_failures:
18+
- php: nightly
1119

1220
branches:
1321
only:
@@ -19,11 +27,13 @@ cache:
1927
- $HOME/.composer/cache
2028

2129
before_install:
22-
- if [[ "$TRAVIS_PHP_VERSION" != "7.0" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
30+
- if [[ "$TRAVIS_PHP_VERSION" != "7.1" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
2331
- composer selfupdate
32+
- if [ "$GRAPHQLPHP_VERSION" != "" ]; then composer require "webonyx/graphql-php:${GRAPHQLPHP_VERSION}" --dev --no-update; fi;
2433

25-
install: composer update --prefer-dist --no-interaction
34+
install: composer update --prefer-dist --no-interaction --optimize-autoloader
2635

2736
script: ./bin/travis_phpunit
2837
after_script:
29-
- 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
38+
- 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
39+

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require": {
1818
"php": "^5.4|~7.0",
19-
"webonyx/graphql-php": "0.10.*"
19+
"webonyx/graphql-php": "^0.10.0 || ^0.11.0"
2020
},
2121
"require-dev": {
2222
"fabpot/php-cs-fixer": "^1.11",

0 commit comments

Comments
 (0)