From 4867c4ceca01c4157ef11d31fdf1fd6d598d39a7 Mon Sep 17 00:00:00 2001 From: Jeremiah VALERIE Date: Sat, 12 Nov 2016 09:59:05 +0100 Subject: [PATCH 1/2] Add ext-mbstring missing requirement This fix "PHP Fatal error: Uncaught Error: Call to undefined function GraphQL\Language\mb_strlen()" --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c9128ce..ba079f1 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,8 @@ "API" ], "require": { - "php": ">=5.4,<8.0-DEV" + "php": ">=5.4,<8.0-DEV", + "ext-mbstring": "*" }, "require-dev": { "phpunit/phpunit": "^4.8" From 4e6b052465fab954c010ad7d7452736cf608116b Mon Sep 17 00:00:00 2001 From: Jeremiah VALERIE Date: Sat, 12 Nov 2016 10:09:19 +0100 Subject: [PATCH 2/2] Optimized travis CI tests * Speed up tests by testing coverage only on php 5.6 * Add php nightly because composer accept it * Add composer cache dir to travis cache --- .travis.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e463deb..c80a898 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,14 +7,23 @@ php: - 7.0 - 7.1 - hhvm + - nightly + +allow_failures: + - php: nightly + +cache: + directories: + - $HOME/.composer/cache + +before_install: + - if [[ "$TRAVIS_PHP_VERSION" != "5.6" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini || true; fi + - composer selfupdate install: - composer install --dev --prefer-dist -script: - - mkdir -p build/logs - - bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml +script: if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then phpunit --coverage-clover build/logs/clover.xml; else phpunit; fi after_success: - - composer require "satooshi/php-coveralls:^1.0" - - travis_retry php bin/coveralls -v + - if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi