Parallelize compiler tests
This commit is contained in:
@@ -2,10 +2,6 @@ import java.io.File
|
||||
import org.gradle.api.tasks.bundling.Jar
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
|
||||
|
||||
tasks.withType<Test> {
|
||||
maxParallelForks = Math.max(Runtime.getRuntime().availableProcessors() / 2, 1)
|
||||
}
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
@@ -87,7 +83,7 @@ jar.from("../idea/resources") {
|
||||
include("META-INF/extensions/compiler.xml")
|
||||
}
|
||||
|
||||
projectTest {
|
||||
projectTest(parallel = true) {
|
||||
dependsOn(":dist")
|
||||
workingDir = rootDir
|
||||
systemProperty("kotlin.test.script.classpath", testSourceSet.output.classesDirs.joinToString(File.pathSeparator))
|
||||
|
||||
Reference in New Issue
Block a user