summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJordan Petridis <jordanpetridis@protonmail.com>2018-07-14 13:30:05 +0300
committerJordan Petridis <jordanpetridis@protonmail.com>2018-07-20 19:35:47 +0300
commit42dc9f3bf8ea41e3844aac0d302b7fea46abd243 (patch)
tree7868caac4dbc04550095e262d7e539e810c8f2a1 /.gitlab-ci.yml
parente126170bf900d322137fe563481a0644665a462c (diff)
downloadnautilus-42dc9f3bf8ea41e3844aac0d302b7fea46abd243.tar.gz
CI: Workaround cache misses.
Gitlab CI by default zips it's cache target which causes the files to lose their xattributes that ostree relies upon. This workaround makes a tarball of the cache target first, which is then zipped by the Gitlab CI. Then on before_sciprt it extracts it in place. Hopefully tarballs will be the default behavior in the Futureā„¢ and this commit will get reverted. Relevant issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/37444
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3f1d7c579..1d672909a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,6 +23,8 @@ flatpak:
RUNTIME_REPO: "https://sdk.gnome.org/gnome.flatpakrepo"
DBUS_ID: "org.gnome.NautilusDevel"
+ before_script:
+ - tar -xzf cache.tar.gz .flatpak-builder/cache/ || true
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
# Make sure to keep this in sync with the Flatpak manifest, all arguments
@@ -34,6 +36,8 @@ flatpak:
- xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
# Generate a Flatpak bundle
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
+ after_script:
+ - tar -czf cache.tar.gz .flatpak-builder/cache/
artifacts:
paths:
- ${BUNDLE}
@@ -41,7 +45,7 @@ flatpak:
expire_in: 30 days
cache:
paths:
- - .flatpak-builder/cache
+ - cache.tar.gz
review:
stage: deploy