summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-03-06 22:11:52 +0000
committerEthan Lynn <ethanlynnl@vmware.com>2018-03-06 22:17:30 +0000
commitc9effec3dc4eaf6c213512df96829e51996d8498 (patch)
treece64dfea08eb9f82e3a4e9d7041665762b0ff05c
parent159db20191290eafc86e17f00d04fb1e2a0ae46e (diff)
Add sonar
Add sonar code coverage in pom.xml Change-Id: Idc965bb49bf4747cedf4d4f9e9819b3a9c42171e Issue-ID: MULTICLOUD-172 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r--multivimbroker/pom.xml13
-rw-r--r--multivimbroker/tox.ini1
2 files changed, 14 insertions, 0 deletions
diff --git a/multivimbroker/pom.xml b/multivimbroker/pom.xml
index e7b31f1..274f54d 100644
--- a/multivimbroker/pom.xml
+++ b/multivimbroker/pom.xml
@@ -27,6 +27,19 @@
<packaging>pom</packaging>
<name>multicloud-framework-broker</name>
<description>multivim broker</description>
+ <properties>
+ <encoding>UTF-8</encoding>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <nexusproxy>https://nexus.onap.org</nexusproxy>
+ <sonar.sources>.</sonar.sources>
+ <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
+ <sonar.python.coverage.reportPath>vio/coverage.xml</sonar.python.coverage.reportPath>
+ <sonar.language>py</sonar.language>
+ <sonar.pluginName>Python</sonar.pluginName>
+ <sonar.inclusions>**/*.py</sonar.inclusions>
+ <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
+ </properties>
<build>
<plugins>
<plugin>
diff --git a/multivimbroker/tox.ini b/multivimbroker/tox.ini
index 4db044a..cda89e4 100644
--- a/multivimbroker/tox.ini
+++ b/multivimbroker/tox.ini
@@ -25,3 +25,4 @@ setenv=
commands =
coverage erase
{[testenv]commands}
+ coverage xml -i