Skip to content

Commit

Permalink
Made sure to skip the tests for the microservice-schedule-kumuluzee m…
Browse files Browse the repository at this point in the history
…odule when supplying the -DskipTests property on maven build

Signed-off-by: Tilen Faganel <[email protected]>
  • Loading branch information
TFaga committed Sep 21, 2017
1 parent 736661d commit 13f659d
Showing 1 changed file with 63 additions and 51 deletions.
114 changes: 63 additions & 51 deletions microservice-schedule-kumuluzee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,57 +53,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
<plugin>
<groupId>com.bazaarvoice.maven.plugins</groupId>
<artifactId>process-exec-maven-plugin</artifactId>
<version>${version.processexec.plugin}</version>
<executions>
<execution>
<id>start-kumuluzee</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<name>KumuluzEE</name>
<arguments>
<argument>java</argument>
<argument>-jar</argument>
<argument>${project.artifactId}.jar</argument>
</arguments>
<healthcheckUrl>http://localhost:8080/schedule/all</healthcheckUrl>
</configuration>
</execution>
<execution>
<id>stop-kumuluzee</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-all</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -121,6 +70,69 @@
</dependencies>

<profiles>
<profile>
<id>kumuluzee</id>
<activation>
<property>
<name>!skipTests</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
<plugin>
<groupId>com.bazaarvoice.maven.plugins</groupId>
<artifactId>process-exec-maven-plugin</artifactId>
<version>${version.processexec.plugin}</version>
<executions>
<execution>
<id>start-kumuluzee</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<name>KumuluzEE</name>
<arguments>
<argument>java</argument>
<argument>-jar</argument>
<argument>${project.artifactId}.jar</argument>
</arguments>
<healthcheckUrl>http://localhost:8080/schedule/all</healthcheckUrl>
</configuration>
</execution>
<execution>
<id>stop-kumuluzee</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-all</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>fabric8</id>
Expand Down

0 comments on commit 13f659d

Please sign in to comment.