Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Commit 1804358

Browse files
committed
set lower memory usage in travis to hopefully fix the build
1 parent 4ab38fb commit 1804358

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ script: ./gradlew clean build --info --stacktrace
1414

1515
sudo: false
1616

17+
env:
18+
global:
19+
- GRADLE_OPTS="-Xms128m"
20+
1721
cache:
1822
directories:
1923
- $HOME/.gradle

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,15 @@ task wrapper(type: Wrapper) {
226226
gradleVersion = '3.2'
227227
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
228228
}
229+
230+
if (System.env.TRAVIS == 'true') {
231+
allprojects {
232+
tasks.withType(GroovyCompile) {
233+
groovyOptions.fork = false
234+
}
235+
tasks.withType(Test) {
236+
minHeapSize = '128m'
237+
maxHeapSize = '256m'
238+
}
239+
}
240+
}

0 commit comments

Comments
 (0)