Merge pull request #312 from bsinno/enable_test_report_via_profile
enable test-report generation via profile
This commit is contained in:
@@ -8,9 +8,7 @@
|
|||||||
http://www.eclipse.org/legal/epl-v10.html
|
http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.eclipse.hawkbit</groupId>
|
<groupId>org.eclipse.hawkbit</groupId>
|
||||||
@@ -22,60 +20,63 @@
|
|||||||
|
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<build>
|
<profiles>
|
||||||
<plugins>
|
<profile>
|
||||||
<plugin>
|
<id>generateTestReport</id>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<build>
|
||||||
<version>2.7</version>
|
<plugins>
|
||||||
<executions>
|
<plugin>
|
||||||
<execution>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<id>copy-resources</id>
|
<executions>
|
||||||
<phase>verify</phase>
|
<execution>
|
||||||
<goals>
|
<id>copy-resources</id>
|
||||||
<goal>copy-resources</goal>
|
<phase>verify</phase>
|
||||||
</goals>
|
<goals>
|
||||||
|
<goal>copy-resources</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${basedir}/target/allure-results</outputDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>${basedir}/..</directory>
|
||||||
|
<filtering>false</filtering>
|
||||||
|
<includes>
|
||||||
|
<include>**/target/allure-results/*.xml</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>${basedir}</directory>
|
||||||
|
<filtering>false</filtering>
|
||||||
|
<includes>
|
||||||
|
<include>placeholder.txt</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputDirectory>${basedir}/target/allure-results</outputDirectory>
|
<descriptors>
|
||||||
<resources>
|
<descriptor>src/main/assembly/test-report.xml</descriptor>
|
||||||
<resource>
|
</descriptors>
|
||||||
<directory>${basedir}/..</directory>
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
<filtering>false</filtering>
|
|
||||||
<includes>
|
|
||||||
<include>**/target/allure-results/*.xml</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>${basedir}</directory>
|
|
||||||
<filtering>false</filtering>
|
|
||||||
<includes>
|
|
||||||
<include>placeholder.txt</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
<executions>
|
||||||
</executions>
|
<execution>
|
||||||
</plugin>
|
<id>create-report-zip-assembly</id>
|
||||||
<plugin>
|
<phase>verify</phase>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<goals>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<goal>single</goal>
|
||||||
<version>2.5.3</version>
|
</goals>
|
||||||
<configuration>
|
</execution>
|
||||||
<descriptors>
|
</executions>
|
||||||
<descriptor>src/main/assembly/test-report.xml</descriptor>
|
</plugin>
|
||||||
</descriptors>
|
</plugins>
|
||||||
<appendAssemblyId>false</appendAssemblyId>
|
</build>
|
||||||
</configuration>
|
</profile>
|
||||||
<executions>
|
</profiles>
|
||||||
<execution>
|
|
||||||
<id>create-report-zip-assembly</id>
|
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>single</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
Reference in New Issue
Block a user