Pack stdlib tests into a separate archive

So that kotlin-native could download stdlib tests and compiler test data
from different builds.
This commit is contained in:
Ilya Gorbunov
2019-05-17 19:27:52 +03:00
parent ef70e9db19
commit a83d301b50
+11
View File
@@ -635,7 +635,18 @@ val zipCompiler by task<Zip> {
}
}
val zipStdlibTests by task<Zip> {
destinationDirectory.set(file(distDir))
archiveFileName.set("kotlin-stdlib-tests.zip")
from("libraries/stdlib/common/test") { into("common") }
from("libraries/stdlib/test") { into("test") }
doLast {
logger.lifecycle("Stdlib tests are packed to ${archiveFile.get()}")
}
}
val zipTestData by task<Zip> {
dependsOn(zipStdlibTests)
destinationDir = file(distDir)
archiveName = "kotlin-test-data.zip"
from("compiler/testData") { into("compiler") }