diff options
author | Vsevolod Tolstopyatov <qwwdfsad@gmail.com> | 2023-03-27 03:01:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 13:01:34 +0300 |
commit | 9af0b307a14253a21d11d340a78dd9061abee359 (patch) | |
tree | cbd2af142d1833b32f657a2eb6b8ed7b6ba0e510 /integration-tests/gradle/src | |
parent | b9e9962f75bfd6b19c16eccf7d4d6608b8f5db1e (diff) | |
download | dokka-9af0b307a14253a21d11d340a78dd9061abee359.tar.gz dokka-9af0b307a14253a21d11d340a78dd9061abee359.tar.bz2 dokka-9af0b307a14253a21d11d340a78dd9061abee359.zip |
Mark utilities.* API as Dokka-internal (#2937)
* Deprecate unused declaration, remove inline declaration (as it's binary compatible), opt-in into internal API at project level
* Opt-in into DokkaInternalApi where applicable
* Get rid of intermediate test-utils module
Diffstat (limited to 'integration-tests/gradle/src')
-rw-r--r-- | integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt index 8874bc58..95eaf596 100644 --- a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt +++ b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/Android0GradleIntegrationTest.kt @@ -1,10 +1,11 @@ package org.jetbrains.dokka.it.gradle import org.gradle.testkit.runner.TaskOutcome -import org.jetbrains.dokka.test.assumeAndroidSdkInstalled +import org.junit.* import org.junit.runners.Parameterized.Parameters import java.io.File import kotlin.test.* +import kotlin.test.Test class Android0GradleIntegrationTest(override val versions: BuildVersions) : AbstractGradleIntegrationTest() { @@ -12,6 +13,20 @@ class Android0GradleIntegrationTest(override val versions: BuildVersions) : Abst @get:JvmStatic @get:Parameters(name = "{0}") val versions = TestedVersions.ANDROID + + /** + * Indicating whether or not the current machine executing the test is a CI + */ + private val isCI: Boolean get() = System.getenv("CI") == "true" + + private val isAndroidSdkInstalled: Boolean = System.getenv("ANDROID_SDK_ROOT") != null || + System.getenv("ANDROID_HOME") != null + + fun assumeAndroidSdkInstalled() { + if (isCI) return + Assume.assumeTrue(isAndroidSdkInstalled) + } + } @BeforeTest |