[nautilus] CI: Workaround cache misses.
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] CI: Workaround cache misses.
- Date: Fri, 20 Jul 2018 16:45:24 +0000 (UTC)
commit 42dc9f3bf8ea41e3844aac0d302b7fea46abd243
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Sat Jul 14 13:30:05 2018 +0300
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
.gitlab-ci.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]