lens-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amareshw...@apache.org
Subject incubator-lens git commit: LENS-547 : Add profile to instrument classes for lens regression code coverage
Date Fri, 19 Jun 2015 08:59:36 GMT
Repository: incubator-lens
Updated Branches:
  refs/heads/master 6d5f955fb -> 86969ba12


LENS-547 : Add profile to instrument classes for lens regression code coverage


Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/86969ba1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/86969ba1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/86969ba1

Branch: refs/heads/master
Commit: 86969ba12228b873ed0c698634971083e678be28
Parents: 6d5f955
Author: Arshad Matin <arshadmatin@apache.org>
Authored: Fri Jun 19 14:29:24 2015 +0530
Committer: Amareshwari Sriramadasu <amareshwari@apache.org>
Committed: Fri Jun 19 14:29:24 2015 +0530

----------------------------------------------------------------------
 pom.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/86969ba1/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index df0b766..8744974 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,6 +77,7 @@
     <hsqldb.version>2.2.9</hsqldb.version>
     <dbcp.version>1.4</dbcp.version>
     <dbutils.version>1.5</dbutils.version>
+    <antcontrib.version>20020829</antcontrib.version>
 
     <!-- test -->
     <testng.version>6.8</testng.version>
@@ -99,6 +100,8 @@
     <license.plugin.version>2.6</license.plugin.version>
     <buildnumber.plugin.version>1.0</buildnumber.plugin.version>
     <findbugs.plugin.version>3.0.1</findbugs.plugin.version>
+    <antrun.plugin.version>1.7</antrun.plugin.version>
+    <cobertura.plugin.version>2.7</cobertura.plugin.version>
 
     <!-- debian -->
     <mvn.deb.build.dir>${project.build.directory}/debian</mvn.deb.build.dir>
@@ -1247,6 +1250,59 @@
       </build>
     </profile>
     <profile>
+      <id>cobertura</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>cobertura-maven-plugin</artifactId>
+            <version>${cobertura.plugin.version}</version>
+            <executions>
+              <execution>
+                <id>cobertura-instrument</id>
+                <phase>process-classes</phase>
+                <goals>
+                  <goal>instrument</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+
+          <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-antrun-plugin</artifactId>
+          <version>${antrun.plugin.version}</version>
+          <executions>
+            <execution>
+              <phase>process-classes</phase>
+              <configuration>
+                <failOnError>false</failOnError>
+                <tasks>
+                  <propertyfile file="target/generated-classes/cobertura/cobertura.properties">
+                    <entry key="net.sourceforge.cobertura.datafile" value="${mvn.lens.install.dir}"
/>
+                  </propertyfile>
+                </tasks>
+              </configuration>
+              <goals>
+                <goal>run</goal>
+              </goals>
+            </execution>
+          </executions>
+          </plugin>
+
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>findbugs-maven-plugin</artifactId>
+            <configuration>
+              <failOnError>false</failOnError>
+              <skip>true</skip>
+            </configuration>
+          </plugin>
+
+        </plugins>
+      </build>
+   </profile>
+    <profile>
       <id>no-checkstyle</id>
       <build>
         <plugins>


Mime
View raw message