]> source.dussan.org Git - sonarqube.git/commitdiff
Disable karma tests with -DskipTests
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 20 Mar 2014 16:10:05 +0000 (17:10 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 20 Mar 2014 16:10:05 +0000 (17:10 +0100)
sonar-server/pom.xml

index 692b3198e1187ca9be176c5f1f93ccc257a155c0..a06a7c6053981de7a6f52152810bf002061597c2 100644 (file)
               <arguments>install</arguments>
             </configuration>
           </execution>
-          <execution>
-            <id>javascript tests</id>
-            <phase>test</phase>
-            <goals>
-              <goal>grunt</goal>
-            </goals>
-            <configuration>
-              <arguments>karma</arguments>
-            </configuration>
-          </execution>
           <execution>
             <phase>generate-resources</phase>
             <id>grunt build</id>
   </build>
 
   <profiles>
+    <profile>
+      <id>js-tests</id>
+      <activation>
+        <property><name>!skipTests</name></property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>com.github.eirslett</groupId>
+            <artifactId>frontend-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>javascript tests</id>
+                <phase>test</phase>
+                <goals>
+                  <goal>grunt</goal>
+                </goals>
+                <configuration>
+                  <arguments>karma</arguments>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
     <profile>
       <id>start-dev-server</id>
       <properties>