summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2017-08-04 17:22:23 -0400
committerDR695H <dr695h@att.com>2017-08-18 15:38:50 -0400
commit7255e446ce150bc0dea57c46e96f9f83d77590d8 (patch)
treec0f08e5b0664ddb193e48444bdb929df0e7c434a
parenta8dad8ef34999216b0e7622d8f8ffe506b03193e (diff)
adding tox support to maven python build
[TEST-48] tox is run in maven execute plugin to allow tests to be run Change-Id: Ibd66129a94e1529e236dd57c73d823df21ae14b0 Signed-off-by: DR695H <dr695h@att.com>
-rw-r--r--pom.xml44
1 files changed, 33 insertions, 11 deletions
diff --git a/pom.xml b/pom.xml
index 75547aa..6001d9a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,13 +3,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
- <groupId>org.onap.testsuite</groupId>
+ <groupId>org.onap.testsuite.heatbridge</groupId>
<artifactId>heatbridge</artifactId>
<name>heatbridge</name>
<version>0.3</version>
<description>heatbridge used to stitch together some holes in the onap tests for release one</description>
<properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<wheel.name>${project.artifactId}-${project.version}-py2-none-any.whl</wheel.name>
+ <python.sourceDirectory>${project.basedir}/heatbridge</python.sourceDirectory>
</properties>
<build>
<plugins>
@@ -27,7 +29,7 @@
<configuration>
<artifacts>
<artifact>
- <file>${project.build.directory}/py/dist/${wheel.name}</file>
+ <file>${project.build.directory}/maven-python/dist/${wheel.name}</file>
<type>whl</type>
</artifact>
</artifacts>
@@ -38,18 +40,44 @@
<plugin>
<groupId>com.github.UltimateDogg</groupId>
<artifactId>maven-python-distribute-plugin</artifactId>
- <version>0.1.9</version>
+ <version>0.2.0</version>
<configuration>
- <sourceDirectory>heatbridge</sourceDirectory>
+ <sourceDirectory>${python.sourceDirectory}</sourceDirectory>
<distributionType>wheel</distributionType>
</configuration>
<executions>
<execution>
+ <id>package</id>
<phase>prepare-package</phase>
<goals>
<goal>package</goal>
</goals>
</execution>
+ <execution>
+ <id>process</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>process-sources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>exec-maven-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <version>1.1.1</version>
+ <executions>
+ <execution>
+ <id>tox-test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <workingDirectory>${project.build.directory}/maven-python/heatbridge</workingDirectory>
+ <executable>tox</executable>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>
@@ -58,13 +86,7 @@
<dependency>
<groupId>com.github.UltimateDogg</groupId>
<artifactId>maven-python-distribute-plugin</artifactId>
- <version>0.1.9</version>
+ <version>0.2.0</version>
</dependency>
</dependencies>
- <pluginRepositories>
- <pluginRepository>
- <id>jitpack.io</id>
- <url>https://jitpack.io</url>
- </pluginRepository>
- </pluginRepositories>
</project> \ No newline at end of file