[gimp/wip/Jehan/test-ci-cache] app: WIP for CI cache now configured in GNOME gitlab.



commit 9413cdbacde15a3edda16aae35eb8d11f0bc24aa
Author: Jehan <jehan girinstud io>
Date:   Thu May 28 19:51:50 2020 +0200

    app: WIP for CI cache now configured in GNOME gitlab.
    
    Apparently /var/cache/apt/ is where packages are supposed to be cache
    and I can't find a simple way to configure it differently with apt.
    Let's just see if this is the same directory in a gitlab image and if we
    can cache such a system folder.

 .gitlab-ci.yml | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ae39e238df..652475d0c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,6 @@ variables:
   GIT_DEPTH: "1"
   INSTALL_DIR: "_install"
   INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
-  PACMAN_CACHE:   "${CI_PROJECT_DIR}/_pacman_cache"
 
 ## GNU/Linux 64-bit CIs ##
 
@@ -17,7 +16,7 @@ deps-debian/testing:
   stage: dependencies
   cache:
     paths:
-    - _pacman_cache
+    - /var/cache/apt/
   artifacts:
     expire_in: 2 hours
     when: always
@@ -47,6 +46,7 @@ deps-debian/testing:
         meson
         python3
         valac
+    - ls /var/cache/apt/
     - apt-get install -y --reinstall ca-certificates
     - git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git _babl
     - git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
@@ -69,6 +69,9 @@ deps-debian/testing:
   stage: gimp
   dependencies:
     - deps-debian/testing
+  cache:
+    paths:
+    - /var/cache/apt/
   artifacts:
     expire_in: 1 days
     when: always
@@ -177,6 +180,9 @@ gimp-debian/testing-clang:
 
 deps-win64:
   stage: dependencies
+  cache:
+    paths:
+    - /var/cache/apt/
   variables:
     XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
     XDG_DATA_HOME:  "$CI_PROJECT_DIR/.local/share/"
@@ -216,6 +222,9 @@ deps-win64:
 
 gimp-win64:
   stage: gimp
+  cache:
+    paths:
+    - /var/cache/apt/
   dependencies:
     - deps-win64
   variables:
@@ -263,6 +272,9 @@ gimp-win64:
 
 deps-win32:
   stage: dependencies
+  cache:
+    paths:
+    - /var/cache/apt/
   variables:
     XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
     XDG_DATA_HOME:  "$CI_PROJECT_DIR/.local/share/"
@@ -302,6 +314,9 @@ deps-win32:
 
 gimp-win32:
   stage: gimp
+  cache:
+    paths:
+    - /var/cache/apt/
   dependencies:
     - deps-win32
   variables:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]