Skip to content

Commit 3222e0c

Browse files
author
Alex McAusland
committed
Increase Gradle heap for integration tests
1 parent f2f60c5 commit 3222e0c

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
2+
org.gradle.workers.max=1

src/integrationTest/groovy/uk/gov/hmcts/IntegrationTest.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import spock.lang.Specification
88
import spock.lang.TempDir
99

1010
class IntegrationTest extends Specification {
11+
private static final String GRADLE_PROPERTIES = """\
12+
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
13+
org.gradle.workers.max=1
14+
""".stripIndent()
15+
1116
@TempDir
1217
File projectFolder
1318

@@ -17,6 +22,7 @@ class IntegrationTest extends Specification {
1722
void setup() {
1823
buildFile = new File(projectFolder, "build.gradle")
1924
settingsFile = new File(projectFolder, "settings.gradle")
25+
new File(projectFolder, "gradle.properties").text = GRADLE_PROPERTIES
2026
}
2127

2228
def "Check runs checkstyle against all sourcesets"() {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m
2+
org.gradle.workers.max=1

0 commit comments

Comments
 (0)