Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
tests(tooling/plugin): use download version for logsender artifacts i…
Browse files Browse the repository at this point in the history
…n tests
  • Loading branch information
itsaky committed Jul 20, 2024
1 parent 1165f12 commit 87e963a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal val Project.isTestEnv: Boolean
_PROPERTY_IS_TEST_ENV).toString().toBoolean()

internal fun depVersion(testEnv: Boolean): String {
return if (testEnv ) {
return if (testEnv && !System.getenv("CI").toBoolean()) {
BuildInfo.VERSION_NAME_SIMPLE
} else {
BuildInfo.VERSION_NAME_DOWNLOAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
package com.itsaky.androidide.gradle

import com.itsaky.androidide.buildinfo.BuildInfo
import com.itsaky.androidide.tooling.api.LogSenderConfig._PROPERTY_IS_TEST_ENV
import com.itsaky.androidide.tooling.api.LogSenderConfig._PROPERTY_MAVEN_LOCAL_REPOSITORY
import com.itsaky.androidide.utils.FileProvider
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
Expand Down Expand Up @@ -55,8 +57,8 @@ internal fun buildProject(
val args = mutableListOf(
":app:tasks", // run any task, as long as it applies the plugins
"--init-script", initScript.pathString,
"-Pandroidide.plugins.internal.isTestEnv=true", // plugins should be published to maven local first
"-Pandroidide.plugins.internal.mavenLocalRepositories=$repositories",
"-P$_PROPERTY_IS_TEST_ENV=true", // plugins should be published to maven local first
"-P$_PROPERTY_MAVEN_LOCAL_REPOSITORY=$repositories",
"--stacktrace"
)

Expand Down

0 comments on commit 87e963a

Please sign in to comment.