Skip to content

Commit

Permalink
Added ability to set random gcloud dir name.
Browse files Browse the repository at this point in the history
  • Loading branch information
przem-appunite committed Oct 22, 2018
1 parent 55d89f4 commit 6dfdc3e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ firebaseTestLab {
// If you prefer you can use your custom google storage bucket for storing build sources and results
// cloudBucketName = "your-custome-google-storage-bucket-name"
// If not specified default is: a timestamp with a random suffix
// cloudDirectoryName = "your-custome-directory-name"
// If you prefer to install gcloud tool manually you can set path by
Expand Down
3 changes: 1 addition & 2 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ apply plugin: "maven"
apply plugin: "com.gradle.plugin-publish"

group = "firebase.test.lab"
version = "1.1.5"

version = "1.1.6"

gradlePlugin {
plugins {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
CloudTestResultDownloader(
sdk,
resultsTypes,
File(cloudDirectoryName),
File(cloudDirectoryName ?: ""),
File(project.buildDir, cloudDirectoryName),
cloudBucketName!!,
project.logger
Expand All @@ -184,7 +184,7 @@ internal class FirebaseTestLabPlugin : Plugin<Project> {
}

if (clearDirectoryBeforeRun && downloader == null) {
throw IllegalStateException("If you want to clear directory before run you need to setup cloudBucketName")
throw IllegalStateException("If you want to clear directory before run you need to setup cloudBucketName and cloudDirectoryName")
}

val firebaseTestLabProcessCreator = FirebaseTestLabProcessCreator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ import java.io.File

open class FirebaseTestLabPluginExtension(private val project: Project) {

companion object {
private val DEFAULT_DIRECTORY_NAME = "androidTestResults"
}

var keyFile: File? = null
var googleProjectId: String? = null
var cloudSdkPath: String? = null

var cloudBucketName: String? = null
var cloudDirectoryName: String = DEFAULT_DIRECTORY_NAME
var cloudDirectoryName: String? = null

var clearDirectoryBeforeRun = false
var ignoreFailures: Boolean = false
Expand Down

0 comments on commit 6dfdc3e

Please sign in to comment.