Skip to content

Commit 82820d4

Browse files
committed
tweak build for Travis (live server not supported on Travis)
1 parent 9ab75e9 commit 82820d4

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: java
22
sudo: false
33
install: mvn install -DskipFindBugs=true -DskipTests=true -Dmaven.javadoc.skip=true -B -V
4-
script: mvn clean verify -Dmaven.javadoc.skip=true
4+
script: mvn clean verify -DexcludeLiveServerTests=true -Dmaven.javadoc.skip=true
55
cache:
66
directories:
77
- $HOME/.m2

pom.xml

+24
Original file line numberDiff line numberDiff line change
@@ -346,5 +346,29 @@
346346
</plugins>
347347
</build>
348348
</profile>
349+
350+
<profile>
351+
<id>travis-verify-skip-unsupported-tests</id>
352+
<activation>
353+
<property>
354+
<name>excludeLiveServerTests</name>
355+
<value>true</value>
356+
</property>
357+
</activation>
358+
<build>
359+
<plugins>
360+
<plugin>
361+
<groupId>org.apache.maven.plugins</groupId>
362+
<artifactId>maven-surefire-plugin</artifactId>
363+
<version>2.19.1</version>
364+
<configuration>
365+
<excludes>
366+
<exclude>**/*LiveTest.java</exclude>
367+
</excludes>
368+
</configuration>
369+
</plugin>
370+
</plugins>
371+
</build>
372+
</profile>
349373
</profiles>
350374
</project>

0 commit comments

Comments
 (0)