Build: Introduce limitTestTasksConcurrency build property
Is true by default. It can be used to disable the concurrency limit for test tasks
This commit is contained in:
committed by
Space Team
parent
6740a596c7
commit
0a60f2924f
@@ -62,3 +62,6 @@ val KotlinBuildProperties.useFirTightIC: Boolean
|
|||||||
|
|
||||||
val KotlinBuildProperties.isSwiftExportPluginPublishingEnabled: Boolean
|
val KotlinBuildProperties.isSwiftExportPluginPublishingEnabled: Boolean
|
||||||
get() = getBoolean("kotlin.native.swift-export.enabled", false)
|
get() = getBoolean("kotlin.native.swift-export.enabled", false)
|
||||||
|
|
||||||
|
val KotlinBuildProperties.limitTestTasksConcurrency: Boolean
|
||||||
|
get() = getBoolean("kotlin.build.limitTestTasksConcurrency", true)
|
||||||
+3
-1
@@ -286,7 +286,9 @@ fun Project.configureTests() {
|
|||||||
|
|
||||||
tasks.withType<Test>().configureEach {
|
tasks.withType<Test>().configureEach {
|
||||||
outputs.doNotCacheIf("https://youtrack.jetbrains.com/issue/KTI-112") { true }
|
outputs.doNotCacheIf("https://youtrack.jetbrains.com/issue/KTI-112") { true }
|
||||||
usesService(concurrencyLimitService)
|
if (project.kotlinBuildProperties.limitTestTasksConcurrency) {
|
||||||
|
usesService(concurrencyLimitService)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Aggregate task for build related checks
|
// Aggregate task for build related checks
|
||||||
|
|||||||
Reference in New Issue
Block a user