-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 19 - Added basic rerun functionality (#27)
- Loading branch information
1 parent
7da17bd
commit 979257a
Showing
36 changed files
with
574 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
core-impl/src/main/kotlin/net/lachlanmckee/bitrise/core/data/mapper/TestSuitesMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package net.lachlanmckee.bitrise.core.data.mapper | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper | ||
import com.fasterxml.jackson.module.kotlin.readValue | ||
import net.lachlanmckee.bitrise.core.data.entity.TestSuites | ||
|
||
interface TestSuitesMapper { | ||
fun mapTestSuites(xmlText: String): TestSuites | ||
} | ||
|
||
internal class TestSuitesMapperImpl( | ||
private val xmlMapper: ObjectMapper | ||
) : TestSuitesMapper { | ||
override fun mapTestSuites(xmlText: String): TestSuites { | ||
return xmlMapper.readValue(xmlText) | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
core-impl/src/main/kotlin/net/lachlanmckee/bitrise/core/domain/mapper/BuildsMapperImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
core/src/main/kotlin/net/lachlanmckee/bitrise/core/data/entity/BuildDataResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.lachlanmckee.bitrise.core.data.entity | ||
|
||
import com.google.gson.FieldNamingPolicy | ||
import com.google.gson.annotations.SerializedName | ||
import gsonpath.annotation.AutoGsonAdapter | ||
|
||
@AutoGsonAdapter(fieldNamingPolicy = [FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES]) | ||
data class BuildDataResponse( | ||
val branch: String, | ||
val statusText: String, | ||
val commitHash: String, | ||
val commitMessage: String?, | ||
val buildNumber: Int, | ||
val slug: String, | ||
val triggeredAt: String, | ||
val finishedAt: String?, | ||
@SerializedName("original_build_params.environments") | ||
val originalEnvironmentValueList: List<EnvironmentValueResponse> | ||
) |
39 changes: 0 additions & 39 deletions
39
core/src/main/kotlin/net/lachlanmckee/bitrise/core/data/entity/BuildsResponse.kt
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
core/src/main/kotlin/net/lachlanmckee/bitrise/core/data/entity/EnvironmentValueResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package net.lachlanmckee.bitrise.core.data.entity | ||
|
||
import com.google.gson.FieldNamingPolicy | ||
import gsonpath.annotation.AutoGsonAdapter | ||
|
||
@AutoGsonAdapter(fieldNamingPolicy = [FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES]) | ||
data class EnvironmentValueResponse( | ||
val mappedTo: String, | ||
val value: String | ||
) |
18 changes: 18 additions & 0 deletions
18
core/src/main/kotlin/net/lachlanmckee/bitrise/core/data/entity/MultipleBuildsResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package net.lachlanmckee.bitrise.core.data.entity | ||
|
||
import com.google.gson.FieldNamingPolicy | ||
import gsonpath.GsonResultList | ||
import gsonpath.annotation.AutoGsonAdapter | ||
|
||
@AutoGsonAdapter(fieldNamingPolicy = [FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES]) | ||
data class MultipleBuildsResponse( | ||
val data: GsonResultList<BuildDataResponse>, | ||
val paging: Paging | ||
) { | ||
@AutoGsonAdapter(fieldNamingPolicy = [FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES]) | ||
data class Paging( | ||
val totalItemCount: Int, | ||
val pageItemLimit: Int, | ||
val next: String | ||
) | ||
} |
8 changes: 8 additions & 0 deletions
8
core/src/main/kotlin/net/lachlanmckee/bitrise/core/data/entity/SingleBuildResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package net.lachlanmckee.bitrise.core.data.entity | ||
|
||
import com.google.gson.FieldNamingPolicy | ||
import gsonpath.GsonResultList | ||
import gsonpath.annotation.AutoGsonAdapter | ||
|
||
@AutoGsonAdapter(fieldNamingPolicy = [FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES]) | ||
data class SingleBuildResponse(val data: BuildDataResponse) |
Oops, something went wrong.