aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus/cirrus-cache-dependencies.sh
diff options
context:
space:
mode:
Diffstat (limited to '.cirrus/cirrus-cache-dependencies.sh')
-rwxr-xr-x.cirrus/cirrus-cache-dependencies.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/.cirrus/cirrus-cache-dependencies.sh b/.cirrus/cirrus-cache-dependencies.sh
new file mode 100755
index 00000000000..38359fa23f4
--- /dev/null
+++ b/.cirrus/cirrus-cache-dependencies.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -euo pipefail
+
+source .cirrus/cirrus-env
+
+if [ -d "${GRADLE_USER_HOME?}/caches" ]; then
+ echo "gradle dependency cache already exists, bypassing dependencies loading"
+else
+ ./gradlew cacheDependencies \
+ --parallel --console plain --build-cache --info
+ ./gradlew cacheDependencies \
+ --parallel --console plain --build-cache -Pqa --info
+fi