Skip to content

Commit 9bcaf69

Browse files
eviltestereviltester
authored andcommitted
added a pom for travis
file based tests may not have full permission on travis and hardcoded drive dependencies
1 parent a0d2aea commit 9bcaf69

2 files changed

Lines changed: 55 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
language: java
2-
script: mvn test -f ./source/pom.xml
2+
script: mvn test -f ./source/travis-ci-pom.xml

source/travis-ci-pom.xml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5+
http://maven.apache.org/xsd/maven-4.0.0.xsd">
6+
7+
<modelVersion>4.0.0</modelVersion>
8+
9+
<groupId>javaForTesters</groupId>
10+
<artifactId>javaForTesters</artifactId>
11+
<version>1.0-SNAPSHOT</version>
12+
<packaging>jar</packaging>
13+
14+
<properties>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
</properties>
17+
18+
<dependencies>
19+
20+
<dependency>
21+
<groupId>junit</groupId>
22+
<artifactId>junit</artifactId>
23+
<version>4.11</version>
24+
</dependency>
25+
26+
</dependencies>
27+
28+
<build>
29+
<plugins>
30+
<plugin>
31+
<groupId>org.apache.maven.plugins</groupId>
32+
<artifactId>maven-surefire-plugin</artifactId>
33+
<version>2.18.1</version>
34+
<configuration>
35+
<excludes>
36+
<!-- exclude file tests from travis-ci.org execution -->
37+
<exclude>**/FileTest.java</exclude>
38+
<exclude>**/PropertiesTest.java</exclude>
39+
<exclude>**/PropertyExercisesTest.java</exclude>
40+
</excludes>
41+
</configuration>
42+
</plugin>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-compiler-plugin</artifactId>
46+
<version>3.1</version>
47+
<configuration>
48+
<source>1.7</source>
49+
<target>1.7</target>
50+
</configuration>
51+
</plugin>
52+
</plugins>
53+
</build>
54+
</project>

0 commit comments

Comments
 (0)