aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2019-09-16 14:55:02 +0300
committerEylon Malin <eylon.malin@intl.att.com>2019-09-16 14:55:02 +0300
commit616f28883879bb1eb762c6ba1bc24082bf840b24 (patch)
tree7f968f82e77585cec4c137c4584facca32b0b5c9 /vid-app-common
parent98794615f346c753a94fa5f63f7cbc67792af4c1 (diff)
make maven fronted tests optional by profile
Issue-ID: VID-643 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I906ae56d874ca4b8a760cdfb45ce23cf0e6cf6c3
Diffstat (limited to 'vid-app-common')
-rwxr-xr-xvid-app-common/pom.xml18
1 files changed, 14 insertions, 4 deletions
diff --git a/vid-app-common/pom.xml b/vid-app-common/pom.xml
index 6dbaa98b4..7f2b27c9f 100755
--- a/vid-app-common/pom.xml
+++ b/vid-app-common/pom.xml
@@ -65,9 +65,19 @@
<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> -->
@@ -189,7 +199,7 @@
<goals>
<goal>install-node-and-npm</goal>
</goals>
- <phase>generate-resources</phase>
+ <phase>${frontendTestsPhase}</phase>
<configuration>
<npmVersion>${npm.version}</npmVersion>
<nodeVersion>${node.version}</nodeVersion>
@@ -203,7 +213,7 @@
<goals>
<goal>npm</goal>
</goals>
- <phase>generate-resources</phase>
+ <phase>${frontendTestsPhase}</phase>
</execution>
<execution>
<id>npm install</id>
@@ -213,7 +223,7 @@
<goals>
<goal>npm</goal>
</goals>
- <phase>generate-resources</phase>
+ <phase>${frontendTestsPhase}</phase>
</execution>
<execution>
<id>npm run-script build</id>
@@ -223,7 +233,7 @@
<goals>
<goal>npm</goal>
</goals>
- <phase>generate-resources</phase>
+ <phase>${frontendTestsPhase}</phase>
</execution>
</executions>
</plugin>