File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ fun Project.build(platform: String) = platform(platform, "Build") {
91
91
name = " Build and Test $platform Binaries"
92
92
jdkHome = " %env.$jdk %"
93
93
jvmArgs = " -Xmx1g"
94
- tasks = " clean publishToBuildLocal check"
94
+ tasks = " clean publishToBuildLocal check ${fastBenchmarkTasks(platform).joinToString(separator = " " )} "
95
95
// --continue is needed to run tests for all targets even if one target fails
96
96
gradleParams = " --info --stacktrace -P$versionSuffixParameter =SNAPSHOT -P$teamcitySuffixParameter =%build.counter% --continue"
97
97
buildFile = " "
@@ -103,6 +103,16 @@ fun Project.build(platform: String) = platform(platform, "Build") {
103
103
artifactRules = " +:build/maven=>maven\n +:build/api=>api"
104
104
}
105
105
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
+
106
116
fun BuildType.dependsOn (build : BuildType , configure : Dependency .() -> Unit ) =
107
117
apply {
108
118
dependencies.dependency(build, configure)
You can’t perform that action at this time.
0 commit comments