Skip to content

Commit

Permalink
Android: disable http caching in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Aug 30, 2023
1 parent 03e9e5c commit 6473473
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Android/gradle/buildCacheSettings.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
ext.isMasterBranch = System.getenv()["CIRRUS_BRANCH"] == "master"
ext.buildCacheHost = System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321")
// ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
// ext.isMasterBranch = System.getenv()["CIRRUS_BRANCH"] == "master"
// ext.buildCacheHost = System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321")

buildCache {
local {
enabled = !isCiServer
}
remote(HttpBuildCache) {
url = "http://${buildCacheHost}/"
enabled = isCiServer
push = isMasterBranch
}
}
// buildCache {
// local {
// enabled = !isCiServer
// }
// remote(HttpBuildCache) {
// url = "http://${buildCacheHost}/"
// enabled = isCiServer
// push = isMasterBranch
// }
// }

0 comments on commit 6473473

Please sign in to comment.