Skip to content

Commit

Permalink
KEYCLOAK-5883 Deploy testsuite during product build
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-kanis authored and stianst committed Nov 30, 2017
1 parent 106599b commit 603052c
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 35 deletions.
24 changes: 24 additions & 0 deletions examples/providers/user-storage-simple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,28 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>product</id>
<activation>
<property>
<name>product</name>
</property>
</activation>
<build>
<plugins>
<!-- The example needs to be deployed during the product build, because it's testsuite's dependency.
We need to override setting from parent module. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
26 changes: 19 additions & 7 deletions testsuite/integration-arquillian/servers/migration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down Expand Up @@ -218,6 +211,25 @@
</build>

<profiles>
<profile>
<id>community</id>
<activation>
<property>
<name>!product</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>productized-server</id>
<activation>
Expand Down
28 changes: 21 additions & 7 deletions testsuite/integration-arquillian/servers/wildfly-balancer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@

<build>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
Expand Down Expand Up @@ -144,4 +137,25 @@
</plugins>
</build>

<profiles>
<profile>
<id>community</id>
<activation>
<property>
<name>!product</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
26 changes: 19 additions & 7 deletions testsuite/integration-deprecated/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -334,6 +327,25 @@
</build>

<profiles>
<profile>
<id>community</id>
<activation>
<property>
<name>!product</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>ldap</id>
<build>
Expand Down
18 changes: 11 additions & 7 deletions testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand All @@ -64,6 +57,17 @@
<name>!product</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>jetty</module>
<module>proxy</module>
Expand Down
26 changes: 19 additions & 7 deletions testsuite/tomcat8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -280,6 +273,25 @@
</build>

<profiles>
<profile>
<id>community</id>
<activation>
<property>
<name>!product</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>keycloak-server</id>
<build>
Expand Down

0 comments on commit 603052c

Please sign in to comment.