Marvel: add configuration for integration tests

Original commit: elastic/x-pack-elasticsearch@6161a64d13
This commit is contained in:
Tanguy Leroux 2015-07-21 14:51:00 +02:00
parent 75178aa6e7
commit 99dc9784cc
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0"?>
<project name="commercial-integration-tests">
<import file="${elasticsearch.integ.antfile.default}"/>
<target name="start-external-cluster-with-plugin" depends="setup-workspace" unless="${shouldskip}">
<install-plugin name="elasticsearch-license" file="${integ.deps}/elasticsearch-license-plugin-${project.version}.zip" />
<install-plugin name="${project.artifactId}" file="${project.build.directory}/releases/${project.artifactId}-${project.version}.zip"/>
<startup-elasticsearch/>
</target>
</project>

View File

@ -15,6 +15,10 @@
<version>2.0.0-beta1-SNAPSHOT</version>
</parent>
<properties>
<elasticsearch.integ.antfile>dev-tools/integration-tests.xml</elasticsearch.integ.antfile>
</properties>
<dependencies>
<dependency>
@ -37,6 +41,37 @@
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>integ-setup-dependencies</id>
<phase>pre-integration-test</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems combine.children="append">
<artifactItem>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-license-plugin</artifactId>
<version>${project.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,3 +1,4 @@
<?xml version="1.0"?>
<assembly>
<id>plugin</id>
<formats>