Browse Source

Drop unused Surefire config for skipping tests

tags/6.4-RC1
Simon Brandhof 7 years ago
parent
commit
c4faf8ce19

+ 0
- 45
pom.xml View File

@@ -79,8 +79,6 @@
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
<license.title>SonarQube</license.title>

<skipBatchTests>false</skipBatchTests>
<skipServerTests>false</skipServerTests>
<skipSanityChecks>false</skipSanityChecks>

<argLine>-Xmx512m -Djava.awt.headless=true</argLine>
@@ -379,7 +377,6 @@
-->
<user.timezone>${testTimezone}</user.timezone>
</systemPropertyVariables>
<groups>${junitGroups}</groups>
<threadCount>1</threadCount>
</configuration>
</plugin>
@@ -1360,48 +1357,6 @@
</build>
</profile>

<!--
The following profiles optimize the build for each team, according to their
stack layers (scanner, server and web teams)
-->
<profile>
<!-- disable all tests -->
<id>skipTests</id>
<activation>
<property>
<name>skipTests</name>
</property>
</activation>
<properties>
<skipBatchTests>true</skipBatchTests>
<skipServerTests>true</skipServerTests>
</properties>
</profile>

<profile>
<id>scanner</id>
<properties>
<skipServerTests>true</skipServerTests>
</properties>
</profile>

<profile>
<id>server</id>
<properties>
<skipBatchTests>true</skipBatchTests>
</properties>
</profile>

<profile>
<id>web</id>
<properties>
<!-- the web team does not care about java tests -->
<skipBatchTests>true</skipBatchTests>
<skipServerTests>true</skipServerTests>
<skipTests>true</skipTests>
</properties>
</profile>

<profile>
<!--
check if maven dependencies have vulnerabilities listed in CVE

+ 0
- 12
server/sonar-ce/pom.xml View File

@@ -61,16 +61,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>

</project>

+ 0
- 7
server/sonar-db-core/pom.xml View File

@@ -126,13 +126,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>

+ 0
- 7
server/sonar-db-dao/pom.xml View File

@@ -91,13 +91,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>

+ 0
- 14
server/sonar-db-migration/pom.xml View File

@@ -73,18 +73,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
</profiles>
</project>

+ 0
- 12
server/sonar-plugin-bridge/pom.xml View File

@@ -26,16 +26,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>

</project>

+ 0
- 13
server/sonar-process-monitor/pom.xml View File

@@ -76,18 +76,5 @@
<artifactId>http-request</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 7
server/sonar-process/pom.xml View File

@@ -116,13 +116,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 12
server/sonar-search/pom.xml View File

@@ -65,16 +65,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>

</project>

+ 0
- 7
server/sonar-server/pom.xml View File

@@ -310,13 +310,6 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>


+ 0
- 7
sonar-application/pom.xml View File

@@ -247,13 +247,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<profiles>

+ 0
- 12
sonar-check-api/pom.xml View File

@@ -23,16 +23,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipBatchTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 12
sonar-duplications/pom.xml View File

@@ -79,16 +79,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipBatchTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 0
- 12
sonar-markdown/pom.xml View File

@@ -41,16 +41,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipServerTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

+ 1
- 0
sonar-plugin-api/pom.xml View File

@@ -190,6 +190,7 @@
<relocation>
<pattern>com.google</pattern>
<shadedPattern>org.sonar.api.internal.google</shadedPattern>

</relocation>
<relocation>
<pattern>org.apache.commons</pattern>

+ 0
- 12
sonar-scanner-engine/pom.xml View File

@@ -137,18 +137,6 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipBatchTests}</skipTests>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>runBenchmarks</id>

+ 0
- 7
sonar-scanner-protocol/pom.xml View File

@@ -76,13 +76,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipBatchTests}</skipTests>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>

Loading…
Cancel
Save