Make Travis not run any tests that involve accessing the network.

This commit is contained in:
Andreas Schildbach 2015-07-23 14:26:04 +02:00
parent 551d01a625
commit 5c2eaf2654
2 changed files with 19 additions and 2 deletions

View file

@ -4,12 +4,12 @@ language: java
jdk: oraclejdk8 jdk: oraclejdk8
install: true # remove default install: true # remove default
script: script:
- mvn -q clean install - mvn -q clean install -Pno-network
- jdk_switcher use openjdk6 - jdk_switcher use openjdk6
- cd orchid - cd orchid
- mvn -q clean package - mvn -q clean package
- cd ../core - cd ../core
- mvn -q clean package - mvn -q clean package -Pno-network
after_success: after_success:
- cd ../core - cd ../core

View file

@ -91,6 +91,23 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>no-network</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/core/PeerTest.java</exclude>
<exclude>**/core/TransactionBroadcastTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
<build> <build>