summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-03-02 17:23:26 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-03-02 17:23:26 +0800
commitf95f792d9cd6ee3858e4d3bf89d23b1a461075ef (patch)
tree66cce6c08cb7c14ae78741a6acb3551709da328c /pom.xml
parent910bb6bc909965ce7c26741ebb8d5421393d26a6 (diff)
Add Sonar coverage for vfc-nfvo-catalog
Change-Id: Ib55c4777613792f316977b886e0243d263a31d53 Issue-ID: VFC-782 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml61
1 files changed, 61 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 9115e518..3b9f95f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,9 +27,70 @@
<packaging>pom</packaging>
<name>vfc-nfvo-catalog</name>
<description>vfc nfvo catalog</description>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <sonar.sources>.</sonar.sources>
+ <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
+ <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
+ <sonar.language>py</sonar.language>
+ <sonar.pluginname>python</sonar.pluginname>
+ <sonar.inclusions>**/**.py</sonar.inclusions>
+ <sonar.exclusions>**/tests/**.py,**/test*.py</sonar.exclusions>
+ </properties>
<build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <configuration>
+ <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
+ <environmentVariables>
+ <!-- make mvn properties as env for our script -->
+ <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
+ <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
+ <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
+ </environmentVariables>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>clean phase script</id>
+ <phase>clean</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <arguments>
+ <argument>__</argument>
+ <argument>clean</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>test script</id>
+ <phase>test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <arguments>
+ <argument>__</argument>
+ <argument>test</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<appendAssemblyId>false</appendAssemblyId>