incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/2] git commit: Seperated Unit tests and Integration tests.
Date Fri, 09 Nov 2012 03:30:29 GMT
Seperated Unit tests and Integration tests.

Signed-off-by: Aaron McCurry <amccurry@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/95bd2a04
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/95bd2a04
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/95bd2a04

Branch: refs/heads/0.2-dev-mr-formats
Commit: 95bd2a04c0d932f02d1f34080fe66762bd651059
Parents: b0893e1
Author: Gagan <gagandeepjuneja@gmail.com>
Authored: Wed Nov 7 13:28:09 2012 +0530
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu Nov 8 22:19:35 2012 -0500

----------------------------------------------------------------------
 src/pom.xml |  177 ++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 111 insertions(+), 66 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/95bd2a04/src/pom.xml
----------------------------------------------------------------------
diff --git a/src/pom.xml b/src/pom.xml
index 0df3a96..5f97eb3 100644
--- a/src/pom.xml
+++ b/src/pom.xml
@@ -21,11 +21,11 @@ under the License.
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
 
-    <parent>
-      <groupId>org.apache</groupId>
-      <artifactId>apache</artifactId>
-      <version>11</version>
-    </parent>
+	<parent>
+		<groupId>org.apache</groupId>
+		<artifactId>apache</artifactId>
+		<version>11</version>
+	</parent>
 
 	<groupId>org.apache.blur</groupId>
 	<artifactId>blur</artifactId>
@@ -33,10 +33,10 @@ under the License.
 	<packaging>pom</packaging>
 
 	<name>Blur</name>
-    <description>Blur is a search platform capable of searching massive amounts of
data in a cloud computing environment.</description>
-    <url>http://incubator.apache.org/blur/</url>
-    <inceptionYear>2012</inceptionYear>
-	
+	<description>Blur is a search platform capable of searching massive amounts of data
in a cloud computing environment.</description>
+	<url>http://incubator.apache.org/blur/</url>
+	<inceptionYear>2012</inceptionYear>
+
 	<modules>
 		<module>blur-core</module>
 		<module>blur-thrift</module>
@@ -58,62 +58,107 @@ under the License.
 		</dependency>
 	</dependencies>
 
-    <build>
-      <plugins>
-        <plugin>
-          <groupId>org.apache.rat</groupId>
-          <artifactId>apache-rat-plugin</artifactId>
-	   <configuration>
-              <excludes>
-                <exclude>**/generated/**</exclude>
-                <exclude>**/*min.js</exclude>
-                <exclude>**/input-data/*.txt</exclude>
-                <exclude>**/testsuite/words.txt</exclude>
-                <exclude>**/README.textile</exclude>
-	      </excludes>
-	   </configuration>
-        </plugin>
-      </plugins>
-
-      <pluginManagement>
-        <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-surefire-plugin</artifactId>
-            <configuration>
-              <systemPropertyVariables>
-                <blur.tmp.dir>${project.build.directory}/tmp</blur.tmp.dir>
-              </systemPropertyVariables>
-            </configuration>
-          </plugin>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.rat</groupId>
+				<artifactId>apache-rat-plugin</artifactId>
+				<configuration>
+					<excludes>
+						<exclude>**/generated/**</exclude>
+						<exclude>**/*min.js</exclude>
+						<exclude>**/input-data/*.txt</exclude>
+						<exclude>**/testsuite/words.txt</exclude>
+						<exclude>**/README.textile</exclude>
+					</excludes>
+				</configuration>
+			</plugin>
+		</plugins>
 
-          <!-- Ignore/Execute plugin execution -->
-          <plugin>
-            <groupId>org.eclipse.m2e</groupId>
-            <artifactId>lifecycle-mapping</artifactId>
-            <version>1.0.0</version>
-            <configuration>
-              <lifecycleMappingMetadata>
-                <pluginExecutions>
-                  <!-- copy-dependency plugin -->
-                  <pluginExecution>
-                    <pluginExecutionFilter>
-                      <groupId>org.apache.maven.plugins</groupId>
-                      <artifactId>maven-dependency-plugin</artifactId>
-                      <versionRange>[1.0.0,)</versionRange>
-                      <goals>
-                        <goal>copy-dependencies</goal>
-                      </goals>
-                    </pluginExecutionFilter>
-                    <action>
-                      <ignore />
-                    </action>
-                  </pluginExecution>
-                </pluginExecutions>
-              </lifecycleMappingMetadata>
-            </configuration>
-          </plugin>
-        </plugins>
-      </pluginManagement>
-    </build>
+		<pluginManagement>
+			<plugins>
+				<!-- Ignore/Execute plugin execution -->
+				<plugin>
+					<groupId>org.eclipse.m2e</groupId>
+					<artifactId>lifecycle-mapping</artifactId>
+					<version>1.0.0</version>
+					<configuration>
+						<lifecycleMappingMetadata>
+							<pluginExecutions>
+								<!-- copy-dependency plugin -->
+								<pluginExecution>
+									<pluginExecutionFilter>
+										<groupId>org.apache.maven.plugins</groupId>
+										<artifactId>maven-dependency-plugin</artifactId>
+										<versionRange>[1.0.0,)</versionRange>
+										<goals>
+											<goal>copy-dependencies</goal>
+										</goals>
+									</pluginExecutionFilter>
+									<action>
+										<ignore />
+									</action>
+								</pluginExecution>
+							</pluginExecutions>
+						</lifecycleMappingMetadata>
+					</configuration>
+				</plugin>
+			</plugins>
+		</pluginManagement>
+	</build>
+	<profiles>
+		<profile>
+			<id>default</id>
+			<activation>
+				<activeByDefault>true</activeByDefault>
+			</activation>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-surefire-plugin</artifactId>
+						<configuration>
+							<excludes>
+								<exclude>**/IT*.java</exclude>
+							</excludes>
+							<systemPropertyVariables>
+								<blur.tmp.dir>${project.build.directory}/tmp</blur.tmp.dir>
+							</systemPropertyVariables>
+						</configuration>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+		<profile>
+			<id>integration-test</id>
+			<activation>
+				<activeByDefault>false</activeByDefault>
+			</activation>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-surefire-plugin</artifactId>
+						<configuration>
+							<!-- Disable unit tests -->
+							<skip>true</skip>
+						</configuration>
+					</plugin>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-failsafe-plugin</artifactId>
+						<version>2.12</version>
+						<executions>
+							<execution>
+								<goals>
+									<goal>integration-test</goal>
+									<goal>verify</goal>
+								</goals>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
 </project>


Mime
View raw message