Skip to content

Commit

Permalink
clear CC reports
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko committed Nov 11, 2024
1 parent 76e30c1 commit 13ef2d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ class AndroidComposeIT {
fun `expect Dokka is compatible with Gradle Configuration Cache`(
project: DokkaGradleProjectRunner,
) {
project.file(".gradle/configuration-cache").deleteRecursively()
project.file("build/reports/configuration-cache").deleteRecursively()
fun clearCcReports() {
project.file(".gradle/configuration-cache").deleteRecursively()
project.file("build/reports/configuration-cache").deleteRecursively()
}

val configCacheRunner =
project.runner.addArguments(
Expand All @@ -125,6 +127,8 @@ class AndroidComposeIT {
)

withClue("first build should store the configuration cache") {
clearCcReports()

configCacheRunner.build {
shouldHaveTask(":dokkaGenerate").shouldHaveOutcome(UP_TO_DATE, SUCCESS)

Expand All @@ -138,6 +142,8 @@ class AndroidComposeIT {
}

withClue("TeamCity needs another build to let AGP finish setting up the Android SDK") {
clearCcReports()

configCacheRunner.build {
shouldHaveTask(":dokkaGenerate").shouldHaveOutcome(UP_TO_DATE, SUCCESS)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ class AndroidProjectIT {
fun `expect Dokka is compatible with Gradle Configuration Cache`(
project: DokkaGradleProjectRunner,
) {
project.file(".gradle/configuration-cache").deleteRecursively()
project.file("build/reports/configuration-cache").deleteRecursively()
fun clearCcReports() {
project.file(".gradle/configuration-cache").deleteRecursively()
project.file("build/reports/configuration-cache").deleteRecursively()
}

val configCacheRunner =
project.runner.addArguments(
Expand All @@ -132,6 +134,7 @@ class AndroidProjectIT {
)

withClue("first build should store the configuration cache") {
clearCcReports()
configCacheRunner.build {
shouldHaveTask(":dokkaGenerate").shouldHaveOutcome(UP_TO_DATE, SUCCESS)

Expand All @@ -145,6 +148,7 @@ class AndroidProjectIT {
}

withClue("TeamCity needs another build to let AGP finish setting up the Android SDK") {
clearCcReports()
configCacheRunner.build {
shouldHaveTask(":dokkaGenerate").shouldHaveOutcome(UP_TO_DATE, SUCCESS)

Expand Down

0 comments on commit 13ef2d5

Please sign in to comment.