make maven fronted tests optional by profile 37/95737/1
authorEylon Malin <eylon.malin@intl.att.com>
Mon, 16 Sep 2019 11:55:02 +0000 (14:55 +0300)
committerEylon Malin <eylon.malin@intl.att.com>
Mon, 16 Sep 2019 11:55:02 +0000 (14:55 +0300)
Issue-ID: VID-643
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I906ae56d874ca4b8a760cdfb45ce23cf0e6cf6c3

vid-app-common/pom.xml

index 6dbaa98..7f2b27c 100755 (executable)
         <patch_version/>
 
         <reportportal.argline>-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar -Drp.enable=true -Drp.mode=DEFAULT -Drp.tags="CICD;BE_UNIT;BUILD_${env.BUILD_NUMBER}"</reportportal.argline>
+        <frontendTestsPhase>generate-resources</frontendTestsPhase>
 
     </properties>
 
+    <profiles>
+        <profile>
+            <id>no-frontend-tests</id>
+            <properties>
+                <frontendTestsPhase>none</frontendTestsPhase>
+            </properties>
+        </profile>
+    </profiles>
+
 
     <!-- this should be commented for local debugging -->
     <!-- <deployenv>local</deployenv> -->
                         <goals>
                             <goal>install-node-and-npm</goal>
                         </goals>
-                        <phase>generate-resources</phase>
+                        <phase>${frontendTestsPhase}</phase>
                         <configuration>
                             <npmVersion>${npm.version}</npmVersion>
                             <nodeVersion>${node.version}</nodeVersion>
                         <goals>
                             <goal>npm</goal>
                         </goals>
-                        <phase>generate-resources</phase>
+                        <phase>${frontendTestsPhase}</phase>
                     </execution>
                     <execution>
                         <id>npm install</id>
                         <goals>
                             <goal>npm</goal>
                         </goals>
-                        <phase>generate-resources</phase>
+                        <phase>${frontendTestsPhase}</phase>
                     </execution>
                     <execution>
                         <id>npm run-script build</id>
                         <goals>
                             <goal>npm</goal>
                         </goals>
-                        <phase>generate-resources</phase>
+                        <phase>${frontendTestsPhase}</phase>
                     </execution>
                 </executions>
             </plugin>