Reduce memory requirements for gradle and js backend tests

This commit is contained in:
Ilya Chernikov
2017-09-06 16:00:34 +03:00
parent c428f12d71
commit a63d1a53c3
3 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ fun Project.projectTest(body: Test.() -> Unit = {}): Test = (tasks.findByName("t
}
}
}
jvmArgs("-ea", "-XX:+HeapDumpOnOutOfMemoryError", "-Xmx1200m", "-XX:+UseCodeCacheFlushing", "-XX:ReservedCodeCacheSize=128m", "-Djna.nosys=true")
maxHeapSize = "1200m"
jvmArgs("-ea", "-XX:+HeapDumpOnOutOfMemoryError", "-Xmx1100m", "-XX:+UseCodeCacheFlushing", "-XX:ReservedCodeCacheSize=128m", "-Djna.nosys=true")
maxHeapSize = "1100m"
systemProperty("idea.is.unit.test", "true")
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
environment("KOTLIN_HOME", rootProject.extra["distKotlinHomeDir"])
+1 -1
View File
@@ -1,7 +1,7 @@
org.gradle.daemon=true
org.gradle.parallel=false
org.gradle.configureondemand=false
org.gradle.jvmargs=-Xmx1200m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
org.gradle.jvmargs=-Xmx1000m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
systemProp.bootstrap.kotlin.repo=https://dl.bintray.com/kotlin/kotlin-dev
systemProp.bootstrap.kotlin.version=1.1.5-dev-970
+7 -3
View File
@@ -3,16 +3,20 @@ apply { plugin("kotlin") }
dependencies {
testCompile(project(":compiler.tests-common"))
testCompile(project(":compiler:frontend"))
testCompile(project(":compiler:cli"))
testCompileOnly(project(":compiler:frontend"))
testCompileOnly(project(":compiler:cli"))
testCompileOnly(project(":compiler:util"))
testCompile(project(":js:js.translator"))
testCompile(project(":js:js.serializer"))
testCompile(project(":js:js.dce"))
testCompile(ideaSdkDeps("openapi", "idea"))
testRuntime(commonDep("junit:junit"))
testRuntime(projectDist(":kotlin-test:kotlin-test-jvm"))
testRuntime(projectDist(":kotlin-test:kotlin-test-junit"))
testRuntime(projectDist(":kotlin-stdlib"))
testRuntime(projectDist(":kotlin-reflect"))
testRuntime(project(":compiler:backend-common"))
testRuntime(ideaSdkDeps("*.jar"))
// testRuntime(ideaSdkDeps("*.jar"))
testRuntime(commonDep("org.fusesource.jansi", "jansi"))
}