aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/src/main
diff options
context:
space:
mode:
authorStefan M <StefMa@users.noreply.github.com>2022-09-01 16:27:11 +0200
committerGitHub <noreply@github.com>2022-09-01 17:27:11 +0300
commit7aae28c09fc52f67d18babb0238dc8a4d397c2ad (patch)
tree7e253e12ff8c296aee92b8eb86c33ab4354c2b95 /integration-tests/src/main
parent92e3d56042d34cb64d672aa7099fe72831ed849f (diff)
downloaddokka-7aae28c09fc52f67d18babb0238dc8a4d397c2ad.tar.gz
dokka-7aae28c09fc52f67d18babb0238dc8a4d397c2ad.tar.bz2
dokka-7aae28c09fc52f67d18babb0238dc8a4d397c2ad.zip
Use GitHub Actions Artifacts to store snapshots instead of S3 (#2630)
* Use GitHub Actions Artifacts for snapshots * Delete s3-cleanup.yml * Fix trigger event * Fix path * Fix path again * Maybe this path is better * Restore env variable to save output to a known place * Add retention days * Replace stdlib with coroutines * Replace S3Project with TestOutputCopier * Restore S3 upload * Change job name * Fix imports * Add TestOutputCopier to SdtlibIntegrationTest * Save stdlib on S3 again * Rename env variable * Increase rentention-days * Remove .kt as filter for test * Fix skiping copying message * Update Gradle and Kotlin version
Diffstat (limited to 'integration-tests/src/main')
-rw-r--r--integration-tests/src/main/kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt (renamed from integration-tests/src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt)6
1 files changed, 3 insertions, 3 deletions
diff --git a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt
index ee69ef62..30770838 100644
--- a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt
+++ b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt
@@ -3,14 +3,14 @@ package org.jetbrains.dokka.it
import org.junit.After
import java.io.File
-interface S3Project {
+interface TestOutputCopier {
val projectOutputLocation: File
@After
fun copyToLocation() {
- System.getenv("DOKKA_IT_AWS_PATH")?.also { location ->
+ System.getenv("DOKKA_TEST_OUTPUT_PATH")?.also { location ->
println("Copying to ${File(location).absolutePath}")
projectOutputLocation.copyRecursively(File(location))
- } ?: println("No copy path provided, skipping")
+ } ?: println("No path via env. varbiable 'DOKKA_TEST_OUTPUT_PATH' provided, skipping copying")
}
}