@@ -2,9 +2,13 @@ language: php
22sudo : false
33
44php :
5+ - 7.3
6+ - 7.2
57 - 7.1
6- - 7
7- - 5.6
8+ - 7.0
9+
10+ services :
11+ - mysql
812
913env :
1014 global :
1317 - SIMPLETEST_DB=mysql://root:@127.0.0.1/graphql
1418 - TRAVIS=true
1519 matrix :
16- - DRUPAL_CORE=8.4.x
17- - DRUPAL_CORE=8.5.x
18- - DRUPAL_CORE=8.6.x
20+ - DRUPAL_CORE=8.7.x
21+ - DRUPAL_CORE=8.8.x
1922
2023matrix :
2124 # Don't wait for the allowed failures to build.
2225 fast_finish : true
2326 include :
24- - php : 7.1
27+ - php : 7.3
2528 env :
26- - DRUPAL_CORE=8.6 .x
29+ - DRUPAL_CORE=8.7 .x
2730 # Only run code coverage on the latest php and drupal versions.
2831 - WITH_PHPDBG_COVERAGE=true
2932 allow_failures :
3033 # Allow the code coverage report to fail.
31- - php : 7.1
34+ - php : 7.3
3235 env :
33- - DRUPAL_CORE=8.6 .x
36+ - DRUPAL_CORE=8.7 .x
3437 # Only run code coverage on the latest php and drupal versions.
3538 - WITH_PHPDBG_COVERAGE=true
3639
@@ -54,14 +57,6 @@ before_install:
5457 else export PHPINI=$HOME/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini;
5558 fi
5659
57- # PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated
58- # and will be removed in a future version. To avoid this warning set
59- # 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input
60- # stream instead.
61- - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]];
62- then echo always_populate_raw_post_data = -1 >> $PHPINI;
63- fi;
64-
6560 # Disable the default memory limit.
6661 - echo memory_limit = -1 >> $PHPINI
6762
@@ -92,10 +87,17 @@ install:
9287
9388 # Bring in the module dependencies without requiring a merge plugin. The
9489 # require also triggers a full 'composer install'.
95- - composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.12.6
90+ - composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.12.5
91+
92+ # For Drupal < 8.8 we have to manually upgrade zend-stdlib to avoid PHP 7.3
93+ # incompatibilities.
94+ - if [[ "$DRUPAL_CORE" = "8.6.x" || "$DRUPAL_CORE" = "8.7.x" ]];
95+ then composer --working-dir=$DRUPAL_BUILD_DIR require zendframework/zend-stdlib:3.2.1;
96+ fi
9697
97- # Update PHPUnit for Drupal version >= 8.5.0
98- - if [[ "$DRUPAL_CORE" != "8.4.x" ]];
98+ # For Drupal < 8.8 we have to manually upgrade phpunit to avoid PHP 7.3
99+ # incompatibilities.
100+ - if [[ "$DRUPAL_CORE" = "8.6.x" || "$DRUPAL_CORE" = "8.7.x" ]];
99101 then composer --working-dir=$DRUPAL_BUILD_DIR run-script drupal-phpunit-upgrade;
100102 fi
101103
0 commit comments