Permalink
Browse files

fix: IT tests was not being executed by default. Skipping IT when bui…

…lding on CI.
  • Loading branch information...
leonardossz committed Apr 25, 2017
1 parent 50e9fd7 commit 51081b9c7f9b696aa4891d8dd54ec276c478ba8a
@@ -2,3 +2,5 @@ language: java
dist: trusty
jdk:
- openjdk8
script:
- mvn -B clean verify -DskipITs -DskipDocker
@@ -26,6 +26,16 @@
<artifactId>maven-surefire-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<indra.mongoURI>mongodb://localhost:27017</indra.mongoURI>
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
@@ -41,7 +41,7 @@
import java.util.Collections;
import java.util.List;

public class MongoIndraDriverIT {
public final class MongoIndraDriverIT {
private String mongoURI;

@BeforeTest
@@ -0,0 +1,18 @@
<configuration debug="true" scan="true" scanPeriod="2 seconds">

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date{HH:mm:ss.SSS} %highlight(%-5level) %cyan(%logger{50}) - %msg %n</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>

<logger name="org.mongodb" level="WARN" additivity="true"/>
<logger name="org.glassfish" level="WARN" additivity="true"/>
<logger name="org.glassfish.jersey.filter.LoggingFilter" level="WARN" additivity="true"/>
<logger name="org.lambda3" level="INFO" additivity="true"/>

</configuration>
16 pom.xml
@@ -164,7 +164,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<version>2.20</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.20</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>

0 comments on commit 51081b9

Please sign in to comment.