aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus/cirrus-cache-dependencies.sh
diff options
context:
space:
mode:
authorJulien Carsique <julien.carsique@sonarsource.com>2023-12-27 19:01:16 +0100
committersonartech <sonartech@sonarsource.com>2024-01-23 20:04:15 +0000
commitd26c2ca7db6af4b2cfc24d3f560e5354d0692f9e (patch)
treea97d938a49630b8ed3c61ccc22dbb8eb52978deb /.cirrus/cirrus-cache-dependencies.sh
parent29f0fde0bf04408dd3c35d5122bacda8289e6926 (diff)
downloadsonarqube-d26c2ca7db6af4b2cfc24d3f560e5354d0692f9e.tar.gz
sonarqube-d26c2ca7db6af4b2cfc24d3f560e5354d0692f9e.zip
BUILD-3755 migrate Travis to Cirrus CI
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