Hook southbound integration in normal build process 91/18191/2
authorAnil Vishnoi <vishnoianil@gmail.com>
Mon, 13 Apr 2015 12:57:47 +0000 (18:27 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Mon, 13 Apr 2015 19:51:16 +0000 (01:21 +0530)
Integration test won't be triggered with normal verify build.
-Pintegrationtest option will be required to trigger the integration build.

Change-Id: I49b62f945f5707befa95b8470918b40841c729e6
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
southbound/pom.xml
southbound/southbound-it/pom.xml

index 298f1ada79816958d1133f17c43605f81fd899e6..ae4d3860af3aafcefc21487d1ab151f44c5db022 100644 (file)
@@ -27,5 +27,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
     <module>southbound-karaf</module>\r
     <module>southbound-features</module>\r
     <module>southbound-artifacts</module>\r
+    <module>southbound-it</module>
   </modules>\r
 </project>\r
index 53004188284247b7f32d7522d639fa8f15007d98..a72a50c5ce82664ce57d319b7f59b40b0598f8d7 100644 (file)
@@ -19,6 +19,9 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
   <artifactId>southbound-it</artifactId>
   <version>1.1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
+  <properties>
+      <skip.integrationtest>true</skip.integrationtest>
+  </properties>
   <dependencyManagement>
     <dependencies>
       <dependency>
@@ -123,6 +126,10 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
               <goal>integration-test</goal>
               <goal>verify</goal>
             </goals>
+            <configuration>
+              <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
+              <skipTests>${skip.integrationtest}</skipTests>
+            </configuration>
           </execution>
         </executions>
       </plugin>
@@ -159,4 +166,15 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
       </plugin>
     </plugins>
   </build>
+  <profiles>
+    <profile>
+      <id>integrationtest</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <properties>
+        <skip.integrationtest>false</skip.integrationtest>
+      </properties>
+    </profile>
+  </profiles>
 </project>