Permalink
Browse files

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

  • Loading branch information...
1 parent 551d01a commit 5c2eaf265479ff20ae3b2efe52719b255a51ad24 @schildbach schildbach committed Jul 23, 2015
Showing with 19 additions and 2 deletions.
  1. +2 −2 .travis.yml
  2. +17 −0 core/pom.xml
View
@@ -4,12 +4,12 @@ language: java
jdk: oraclejdk8
install: true # remove default
script:
- - mvn -q clean install
+ - mvn -q clean install -Pno-network
- jdk_switcher use openjdk6
- cd orchid
- mvn -q clean package
- cd ../core
- - mvn -q clean package
+ - mvn -q clean package -Pno-network
after_success:
- cd ../core
View
@@ -91,6 +91,23 @@
</plugins>
</build>
</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>
<build>

0 comments on commit 5c2eaf2

Please sign in to comment.