Skip to content

Commit

Permalink
HSEARCH-2434 Test on ES5 by default (instead of ES2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Mar 21, 2017
1 parent 3cd9b46 commit 867f49f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ script:
"mariadb") BUILD_OPTIONS+=' -Pci-mariadb' ;;
esac
- case $ELASTICSEARCH in
2.0) BUILD_OPTIONS+=' -P!elasticsearch-2.2,elasticsearch-2.0' ;;
2.2) ;;
5.0) BUILD_OPTIONS+=' -P!elasticsearch-2.2,elasticsearch-5.0' ;;
2.0) BUILD_OPTIONS+=' -P!elasticsearch-5.0,elasticsearch-2.0' ;;
2.2) BUILD_OPTIONS+=' -P!elasticsearch-5.0,elasticsearch-2.2' ;;
5.0) ;;
esac
- ./mvnw -s settings-example.xml -Pdocs,dist $BUILD_OPTIONS clean install
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ You may redefine the version to use by specifying the right profile and using th
The following profiles are available:

* `elasticsearch-2.0` for 2.0.x and 2.1.x
* `elasticsearch-2.2` for 2.2.x and later 2.x (the default)
* `elasticsearch-5.0` for 5.x
* `elasticsearch-2.2` for 2.2.x and later 2.x
* `elasticsearch-5.0` for 5.x (the default)

A list of available versions for `testElasticsearchVersion` can be found on
[Maven Central](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.elasticsearch%22%20AND%20a%3A%22elasticsearch%22).
Expand Down
12 changes: 6 additions & 6 deletions backends/jgroups/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,6 @@
</profile>
<profile>
<id>elasticsearch-2.2</id>
<!-- Activation rules are not inherited from the profile definition in the parent, so we must copy them here -->
<activation>
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -263,6 +257,12 @@
</profile>
<profile>
<id>elasticsearch-5.0</id>
<!-- Activation rules are not inherited from the profile definition in the parent, so we must copy them here -->
<activation>
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down
12 changes: 6 additions & 6 deletions elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,6 @@
</profile>
<profile>
<id>elasticsearch-2.2</id>
<!-- Activation rules are not inherited from the profile definition in the parent, so we must copy them here -->
<activation>
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -458,6 +452,12 @@
</profile>
<profile>
<id>elasticsearch-5.0</id>
<!-- Activation rules are not inherited from the profile definition in the parent, so we must copy them here -->
<activation>
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down
12 changes: 6 additions & 6 deletions integrationtest/wildfly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,6 @@
</profile>
<profile>
<id>elasticsearch-2.2</id>
<!-- Activation rules are not inherited from the profile definition in the parent, so we must copy them here -->
<activation>
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -434,6 +428,12 @@
</profile>
<profile>
<id>elasticsearch-5.0</id>
<!-- Activation rules are not inherited from the profile definition in the parent, so we must copy them here -->
<activation>
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1529,15 +1529,9 @@ org.jboss.logging.BasicLogger#debugf(java.lang.Throwable, java.lang.String, long
</build>
</profile>

<!-- Elasticsearch 2.2+ test environment (default) -->
<!-- Elasticsearch 2.2+ test environment -->
<profile>
<id>elasticsearch-2.2</id>
<activation>
<!-- Activate by default, i.e. if testElasticsearchVersion has not been defined explicitly -->
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<properties>
<testElasticsearchMavenPluginVersion>2.2</testElasticsearchMavenPluginVersion>
<testElasticsearchVersion>2.4.4</testElasticsearchVersion>
Expand Down Expand Up @@ -1569,9 +1563,15 @@ org.jboss.logging.BasicLogger#debugf(java.lang.Throwable, java.lang.String, long
</build>
</profile>

<!-- Elasticsearch 5.x test environment -->
<!-- Elasticsearch 5.x test environment (default) -->
<profile>
<id>elasticsearch-5.0</id>
<activation>
<!-- Activate by default, i.e. if testElasticsearchVersion has not been defined explicitly -->
<property>
<name>!testElasticsearchVersion</name>
</property>
</activation>
<properties>
<testElasticsearchMavenPluginVersion>5.7</testElasticsearchMavenPluginVersion>
<testElasticsearchVersion>5.2.1</testElasticsearchVersion>
Expand Down

0 comments on commit 867f49f

Please sign in to comment.