Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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