diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-20 17:10:05 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-20 17:10:05 +0100 |
commit | 8cfa14c12e08a59b92af6b236f3ac3b3dfb2963e (patch) | |
tree | b6df85d81adfeafdbdee399a7ee98b1315a814b3 /sonar-server/pom.xml | |
parent | dca0f6b36622162286f8a880e0ae73d509e53825 (diff) | |
download | sonarqube-8cfa14c12e08a59b92af6b236f3ac3b3dfb2963e.tar.gz sonarqube-8cfa14c12e08a59b92af6b236f3ac3b3dfb2963e.zip |
Disable karma tests with -DskipTests
Diffstat (limited to 'sonar-server/pom.xml')
-rw-r--r-- | sonar-server/pom.xml | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/sonar-server/pom.xml b/sonar-server/pom.xml index 692b3198e11..a06a7c60539 100644 --- a/sonar-server/pom.xml +++ b/sonar-server/pom.xml @@ -280,16 +280,6 @@ </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> <goals> @@ -370,6 +360,32 @@ <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> <gruntTask>dev</gruntTask> |