Additionally run kotlin-stdlib-jdk8 tests on jdk9 and jdk10/11 if available

This commit is contained in:
Ilya Gorbunov
2018-11-14 20:48:29 +03:00
parent c0a7c5cff4
commit f76c0568ea
+12 -2
View File
@@ -93,8 +93,9 @@ test {
executable = "$JDK_18/bin/java"
}
task testJdk6Tests(type: Test) {
task testJdk6Tests(type: Test) { thisTask ->
dependsOn(':kotlin-stdlib:testClasses')
check.dependsOn(thisTask)
group = "verification"
executable = "$JDK_18/bin/java"
@@ -108,4 +109,13 @@ task testJdk6Tests(type: Test) {
}
}
check.dependsOn testJdk6Tests
[9, 10, 11].forEach { v ->
task(type: Test, "jdk${v}Test") { thisTask ->
check.dependsOn(thisTask)
group = "verification"
executable = "${project.property("JDK_$v")}/bin/java"
if (v > 9)
enabled(file(executable).parentFile.isDirectory())
}
}