summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci/cache-subprojects.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci/cache-subprojects.sh')
-rwxr-xr-x.gitlab-ci/cache-subprojects.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci/cache-subprojects.sh b/.gitlab-ci/cache-subprojects.sh
new file mode 100755
index 0000000..fb0337c
--- /dev/null
+++ b/.gitlab-ci/cache-subprojects.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+git clone --depth 1 --no-tags https://gitlab.gnome.org/GNOME/gnome-software.git
+meson subprojects download --sourcedir gnome-software
+rm gnome-software/subprojects/*.wrap
+mv gnome-software/subprojects/ .
+# allow updating this one without a docker rebuild
+rm -rf subprojects/gnome-pwa-list
+rm -rf gnome-software