Correct sonar script pathname 57/36357/1
authorYun Huang <yun.huang@windriver.com>
Sun, 18 Mar 2018 07:36:59 +0000 (15:36 +0800)
committerYun Huang <yun.huang@windriver.com>
Sun, 18 Mar 2018 07:36:59 +0000 (15:36 +0800)
Change-Id: Idc527e0bea04556f78789042faf2d0fff7ccacf4
Issue-ID: MULTICLOUD-171
Signed-off-by: Yun Huang <yun.huang@windriver.com>
newton/pom.xml
newton/tox.ini
ocata/pom.xml
windriver/pom.xml

index 4f16383..1fda107 100644 (file)
@@ -36,7 +36,7 @@
         <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.sources>.,../share</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>
@@ -52,7 +52,7 @@
               <artifactId>exec-maven-plugin</artifactId>
               <version>1.2.1</version>
               <configuration>
-                <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
+                <executable>${project.basedir}/mvn-phase-script.sh</executable>
                 <environmentVariables>
                   <!-- make mvn properties as env for our script -->
                   <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
index e3334cf..ec17886 100644 (file)
@@ -16,12 +16,12 @@ setenv =
 deps = -r{toxinidir}/requirements.txt
 commands =
     coverage run --branch manage.py test newton
-    coverage report --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*" --fail-under=30
+    coverage report --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py" --fail-under=30
 
 [testenv:pep8]
 deps=flake8
 commands=flake8
 
 [testenv:cov]
-commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*, *site-packages*"
+commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py, *site-packages*"
 
index bf90f6e..2903216 100644 (file)
@@ -49,7 +49,7 @@
               <artifactId>exec-maven-plugin</artifactId>
               <version>1.2.1</version>
               <configuration>
-                <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
+                <executable>${project.basedir}/mvn-phase-script.sh</executable>
                 <environmentVariables>
                   <!-- make mvn properties as env for our script -->
                   <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
index 2c08bda..0b216c5 100644 (file)
@@ -49,7 +49,7 @@
               <artifactId>exec-maven-plugin</artifactId>
               <version>1.2.1</version>
               <configuration>
-                <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
+                <executable>${project.basedir}/mvn-phase-script.sh</executable>
                 <environmentVariables>
                   <!-- make mvn properties as env for our script -->
                   <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>