Skip to content

Commit 8be4863

Browse files
committed
Merge branch 'mhujer-mh-es-6'
Fixed conflicts, and removed the allowed failure for 6.x (we shouldn't be failing 6.x, so failures here shouldn't be ignored)
2 parents 21a2d24 + 513ae2a commit 8be4863

File tree

2 files changed

+32
-11
lines changed

2 files changed

+32
-11
lines changed

.travis.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ branches:
1414

1515
sudo: true
1616

17-
php:
18-
- 7.0
19-
- 7.1
20-
2117
matrix:
2218
fast_finish: true
2319
include:
20+
- php: 7.0
21+
env: ES_VERSION="5.5" TEST_BUILD_REF="origin/5.5"
22+
- php: 7.0
23+
env: ES_VERSION="6.0" TEST_BUILD_REF="origin/6.0"
24+
- php: 7.0
25+
env: ES_VERSION="6.x" TEST_BUILD_REF="origin/6.x"
26+
2427
- php: 7.1
25-
env: ES_VERSION="5.0" TEST_BUILD_REF="origin/5.0"
28+
env: ES_VERSION="5.5" TEST_BUILD_REF="origin/5.5"
2629
- php: 7.1
27-
env: ES_VERSION="5.1" TEST_BUILD_REF="origin/5.1"
30+
env: ES_VERSION="6.0" TEST_BUILD_REF="origin/6.0"
2831
- php: 7.1
29-
env: ES_VERSION="5.2" TEST_BUILD_REF="origin/5.2"
32+
env: ES_VERSION="6.x" TEST_BUILD_REF="origin/6.x"
3033

3134
env:
3235
global:
33-
- ES_VERSION="5.x"
34-
- TEST_BUILD_REF="origin/5.x"
3536
- ES_TEST_HOST=http://localhost:9200
3637
- JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
3738

tests/Elasticsearch/Tests/YamlRunnerTest.php

+22-2
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,35 @@ class YamlRunnerTest extends \PHPUnit_Framework_TestCase
5656

5757
/** @var array A list of skipped test with their reasons */
5858
private static $skippedTest = [
59+
'cat.aliases/20_headers.yml' => 'Using java regex fails in PHP',
60+
'cat.aliases/20_headers.yaml' => 'Using java regex fails in PHP',
61+
5962
'cat.nodeattrs/10_basic.yml' => 'Using java regex fails in PHP',
63+
'cat.nodeattrs/10_basic.yaml' => 'Using java regex fails in PHP',
64+
6065
'cat.repositories/10_basic.yml' => 'Using java regex fails in PHP',
66+
'cat.repositories/10_basic.yaml' => 'Using java regex fails in PHP',
67+
6168
'indices.shrink/10_basic.yml' => 'Shrink tests seem to require multiple nodes',
62-
'indices.rollover/10_basic.yml' => 'Rollover test seems buggy atm'
69+
'indices.shrink/10_basic.yaml' => 'Shrink tests seem to require multiple nodes',
70+
71+
'indices.rollover/10_basic.yml' => 'Rollover test seems buggy atm',
72+
'indices.rollover/10_basic.yaml' => 'Rollover test seems buggy atm',
6373
];
6474

6575
/** @var array A list of files to skip completely, due to fatal parsing errors */
6676
private static $skippedFiles = [
6777
'indices.create/10_basic.yml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
78+
'indices.create/10_basic.yaml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
79+
6880
'indices.put_mapping/10_basic.yml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
81+
'indices.put_mapping/10_basic.yaml' => 'Temporary: Yaml parser doesnt support "inline" empty keys',
82+
6983
'search/110_field_collapsing.yml' => 'Temporary: parse error, malformed inline yaml',
70-
'cat.nodes/10_basic.yml' => 'Temporary: parse error, something about $body: |'
84+
'search/110_field_collapsing.yaml' => 'Temporary: parse error, malformed inline yaml',
85+
86+
'cat.nodes/10_basic.yml' => 'Temporary: parse error, something about $body: |',
87+
'cat.nodes/10_basic.yaml' => 'Temporary: parse error, something about $body: |',
7188
];
7289

7390
/**
@@ -733,6 +750,9 @@ public function yamlProvider()
733750
$finder->files();
734751
$finder->name('*.yml');
735752

753+
// *.yaml files should be included until the library is ES 6.0+ only
754+
$finder->name('*.yaml');
755+
736756
$filter = isset($_SERVER['TEST_CASE']) ? $_SERVER['TEST_CASE'] : null;
737757

738758
/** @var SplFileInfo $file */

0 commit comments

Comments
 (0)