Skip to content

Commit 4d98c3d

Browse files
authored
Include tests in travis builds (#44)
* Include tests in travis * Update .travis.yml * Update .travis.yml * Update build.gradle * Add test exclusion property * Exclude ZooModel tests in travis build ZooModel tests got OOM on travis build server
1 parent 2329dbb commit 4d98c3d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ cache:
1313
- $HOME/.gradle/wrapper/
1414

1515
script:
16-
- ./gradlew build -x test
16+
- ./gradlew build -PexcludeTests=**/ZooModelTest*

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,16 @@ dependencies {
302302
}
303303
}
304304

305+
test {
306+
testLogging {
307+
events "passed", "skipped", "failed"
308+
}
309+
310+
if (project.hasProperty('excludeTests')) {
311+
exclude project.property('excludeTests')
312+
}
313+
}
314+
305315
/*
306316
* Specify repositories to get the dependencies from
307317
*/

0 commit comments

Comments
 (0)