Skip to content

Commit 7df966f

Browse files
LeStatVfubhy
authored andcommitted
Travis config update to support D8.6 core (#24)
1 parent 40d0a16 commit 7df966f

File tree

4 files changed

+16
-22
lines changed

4 files changed

+16
-22
lines changed

.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ env:
1414
- SIMPLETEST_DB=mysql://root:@127.0.0.1/graphql
1515
- TRAVIS=true
1616
matrix:
17-
- DRUPAL_CORE=8.3.x
1817
- DRUPAL_CORE=8.4.x
1918
- DRUPAL_CORE=8.5.x
19+
- DRUPAL_CORE=8.6.x
2020

2121
matrix:
2222
# Don't wait for the allowed failures to build.
2323
fast_finish: true
2424
include:
2525
- php: 7.1
2626
env:
27-
- DRUPAL_CORE=8.5.x
27+
- DRUPAL_CORE=8.6.x
2828
# Only run code coverage on the latest php and drupal versions.
2929
- WITH_PHPDBG_COVERAGE=true
3030
allow_failures:
3131
# Allow the code coverage report to fail.
3232
- php: 7.1
3333
env:
34-
- DRUPAL_CORE=8.5.x
34+
- DRUPAL_CORE=8.6.x
3535
# Only run code coverage on the latest php and drupal versions.
3636
- WITH_PHPDBG_COVERAGE=true
3737

@@ -93,7 +93,12 @@ install:
9393

9494
# Bring in the module dependencies without requiring a merge plugin. The
9595
# require also triggers a full 'composer install'.
96-
- composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.11.5
96+
- composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.12.6
97+
98+
# Update PHPUnit for Drupal version >= 8.5.0
99+
- if [[ "$DRUPAL_CORE" != "8.4.x" ]];
100+
then composer --working-dir=$DRUPAL_BUILD_DIR run-script drupal-phpunit-upgrade;
101+
fi
97102

98103
script:
99104
# Run the unit tests using phpdbg if the environment variable is 'true'.

graphql_views.info.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ description: 'Adds support for views.'
44
package: GraphQL
55
core: 8.x
66
dependencies:
7-
- graphql_core
8-
- views
7+
- graphql:graphql_core
8+
- drupal:views
9+
- drupal:system (>=8.4)

tests/src/Kernel/ViewsTestBase.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@
88
use Drupal\taxonomy\Entity\Term;
99
use Drupal\taxonomy\Entity\Vocabulary;
1010
use Drupal\user\Entity\Role;
11+
use Drupal\Tests\graphql_core\Kernel\GraphQLContentTestBase;
12+
use Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait;
1113

1214
/**
1315
* Base class for test views support in GraphQL.
1416
*
1517
* @group graphql_views
1618
*/
17-
abstract class ViewsTestBase extends ViewsTestBaseDeprecationFix {
19+
abstract class ViewsTestBase extends GraphQLContentTestBase {
1820
use NodeCreationTrait;
1921
use ContentTypeCreationTrait;
2022
use EntityReferenceTestTrait;
23+
use TaxonomyTestTrait;
2124

2225
/**
2326
* {@inheritdoc}

tests/src/Kernel/ViewsTestBaseDeprecationFix.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)