Skip to content

Commit 407948b

Browse files
author
Abduqodiri Qurbonzoda
committed
Run fastBenchmark task from :examples module in teamcity
1 parent 719f860 commit 407948b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.teamcity/settings.kts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fun Project.build(platform: String) = platform(platform, "Build") {
9191
name = "Build and Test $platform Binaries"
9292
jdkHome = "%env.$jdk%"
9393
jvmArgs = "-Xmx1g"
94-
tasks = "clean publishToBuildLocal check"
94+
tasks = "clean publishToBuildLocal check ${fastBenchmarkTasks(platform).joinToString(separator = " ")}"
9595
// --continue is needed to run tests for all targets even if one target fails
9696
gradleParams = "--info --stacktrace -P$versionSuffixParameter=SNAPSHOT -P$teamcitySuffixParameter=%build.counter% --continue"
9797
buildFile = ""
@@ -103,6 +103,16 @@ fun Project.build(platform: String) = platform(platform, "Build") {
103103
artifactRules = "+:build/maven=>maven\n+:build/api=>api"
104104
}
105105

106+
fun fastBenchmarkTasks(platform: String): List<String> {
107+
val nativeFastBenchmark = when(platform) {
108+
"Mac OS X" -> "macosX64FastBenchmark"
109+
"Linux" -> "linuxX64FastBenchmark"
110+
"Windows" -> "mingwX64FastBenchmark"
111+
else -> throw IllegalArgumentException("Unknown platform: $platform")
112+
}
113+
return listOf("jsFastBenchmark", "jvmFastBenchmark", nativeFastBenchmark)
114+
}
115+
106116
fun BuildType.dependsOn(build: BuildType, configure: Dependency.() -> Unit) =
107117
apply {
108118
dependencies.dependency(build, configure)

0 commit comments

Comments
 (0)