|
|
@ -35,22 +35,25 @@ subprojects { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val printTestBundleSize by tasks.registering { |
|
|
|
pluginManager.withPlugin("kotlin-multiplatform") { |
|
|
|
doLast { |
|
|
|
val printTestBundleSize by tasks.registering { |
|
|
|
val bundlePath = buildDir.resolve( |
|
|
|
doLast { |
|
|
|
"compileSync/test/testDevelopmentExecutable/kotlin/${rootProject.name}-${project.name}-test.js" |
|
|
|
val bundlePath = buildDir.resolve( |
|
|
|
) |
|
|
|
"compileSync/test/testDevelopmentExecutable/kotlin/${rootProject.name}-${project.name}-test.js" |
|
|
|
if (bundlePath.exists()) { |
|
|
|
) |
|
|
|
val size = bundlePath.length() |
|
|
|
if (bundlePath.exists()) { |
|
|
|
println("##teamcity[buildStatisticValue key='testBundleSize::${project.name}' value='$size']") |
|
|
|
val size = bundlePath.length() |
|
|
|
|
|
|
|
println("##teamcity[buildStatisticValue key='testBundleSize::${project.name}' value='$size']") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
afterEvaluate { |
|
|
|
afterEvaluate { |
|
|
|
tasks.named("jsTest") { finalizedBy(printTestBundleSize) } |
|
|
|
tasks.named("jsTest") { finalizedBy(printTestBundleSize) } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isSampleProject()) { |
|
|
|
if (isSampleProject()) { |
|
|
|
val printBundleSize by tasks.registering { |
|
|
|
val printBundleSize by tasks.registering { |
|
|
|
dependsOn(tasks.named("jsBrowserDistribution")) |
|
|
|
dependsOn(tasks.named("jsBrowserDistribution")) |
|
|
|