From 7aae28c09fc52f67d18babb0238dc8a4d397c2ad Mon Sep 17 00:00:00 2001 From: Stefan M Date: Thu, 1 Sep 2022 16:27:11 +0200 Subject: 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 --- .../src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt | 16 ---------------- .../kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 integration-tests/src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt create mode 100644 integration-tests/src/main/kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt (limited to 'integration-tests/src/main') diff --git a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt deleted file mode 100644 index ee69ef62..00000000 --- a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/S3Project.kt +++ /dev/null @@ -1,16 +0,0 @@ -package org.jetbrains.dokka.it - -import org.junit.After -import java.io.File - -interface S3Project { - val projectOutputLocation: File - - @After - fun copyToLocation() { - System.getenv("DOKKA_IT_AWS_PATH")?.also { location -> - println("Copying to ${File(location).absolutePath}") - projectOutputLocation.copyRecursively(File(location)) - } ?: println("No copy path provided, skipping") - } -} diff --git a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt new file mode 100644 index 00000000..30770838 --- /dev/null +++ b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/TestOutputCopier.kt @@ -0,0 +1,16 @@ +package org.jetbrains.dokka.it + +import org.junit.After +import java.io.File + +interface TestOutputCopier { + val projectOutputLocation: File + + @After + fun copyToLocation() { + System.getenv("DOKKA_TEST_OUTPUT_PATH")?.also { location -> + println("Copying to ${File(location).absolutePath}") + projectOutputLocation.copyRecursively(File(location)) + } ?: println("No path via env. varbiable 'DOKKA_TEST_OUTPUT_PATH' provided, skipping copying") + } +} -- cgit