summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newton/pom.xml7
-rw-r--r--newton/tox.ini1
-rw-r--r--ocata/pom.xml7
-rw-r--r--ocata/tox.ini2
-rw-r--r--windriver/pom.xml7
-rw-r--r--windriver/tox.ini1
6 files changed, 24 insertions, 1 deletions
diff --git a/newton/pom.xml b/newton/pom.xml
index 478d0c94..af99be78 100644
--- a/newton/pom.xml
+++ b/newton/pom.xml
@@ -36,6 +36,13 @@
<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>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>
diff --git a/newton/tox.ini b/newton/tox.ini
index 26a902c2..919ad18f 100644
--- a/newton/tox.ini
+++ b/newton/tox.ini
@@ -17,3 +17,4 @@ commands =
commands =
coverage html --omit=".tox/*,*tests*,*__init__.py"
coverage report --omit=".tox/*,*tests*,*__init__.py" --fail-under=30
+ coverage xml -i
diff --git a/ocata/pom.xml b/ocata/pom.xml
index 0a7581cd..79e241e2 100644
--- a/ocata/pom.xml
+++ b/ocata/pom.xml
@@ -41,6 +41,13 @@
<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>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>
diff --git a/ocata/tox.ini b/ocata/tox.ini
index 391f3b71..0df0c4af 100644
--- a/ocata/tox.ini
+++ b/ocata/tox.ini
@@ -12,4 +12,4 @@ deps = -r{toxinidir}/requirements.txt
commands =
coverage run --branch manage.py test
coverage report --omit=".tox/*,*tests*,*__init__.py,*newton*" --fail-under=30
-
+ coverage xml -i
diff --git a/windriver/pom.xml b/windriver/pom.xml
index 70d8b579..df960783 100644
--- a/windriver/pom.xml
+++ b/windriver/pom.xml
@@ -41,6 +41,13 @@
<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>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>
diff --git a/windriver/tox.ini b/windriver/tox.ini
index 90357d66..418f6a14 100644
--- a/windriver/tox.ini
+++ b/windriver/tox.ini
@@ -12,3 +12,4 @@ deps = -r{toxinidir}/requirements.txt
commands =
coverage run --branch manage.py test titanium_cloud
coverage report --omit=".tox/*,*tests*,*__init__.py,*newton*" --fail-under=30
+ coverage xml -i