[gimp/wip/Jehan/CI-test-caching] Some weird test to check how cache works exactly.



commit 9d274ae4c5463be4221beabdba29ea3b6fe848d8
Author: Jehan <jehan girinstud io>
Date:   Sat Jan 4 02:09:54 2020 +0100

    Some weird test to check how cache works exactly.
    
    WIP. Not to be merged.

 .gitlab-ci.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c33030cdb4..b51ca71393 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,8 +15,9 @@ variables:
 deps-debian/testing:
   stage: dependencies
   cache:
+    key: debian-apt
     paths:
-    - _pacman_cache
+    - apt/
   artifacts:
     expire_in: 1 week
     when: always
@@ -25,6 +26,8 @@ deps-debian/testing:
     - _babl/_build
     - _gegl/_build
   before_script:
+    - echo "CI_COMMIT_REF_SLUG is: $CI_COMMIT_REF_SLUG"
+    - echo "Dir::Cache ${CI_PROJECT_DIR}/apt/;" > /etc/apt/apt.conf.d/99gitlab-cache
     - apt-get update
     - apt-get install -y --no-install-recommends
         build-essential
@@ -67,6 +70,8 @@ deps-debian/testing:
   stage: gimp
   dependencies:
     - deps-debian/testing
+  cache:
+    key: debian-apt
   artifacts:
     expire_in: 1 week
     when: always
@@ -75,6 +80,8 @@ deps-debian/testing:
     - _build
     #- "${INSTALL_DIR}"
   before_script:
+    - echo "CI_COMMIT_REF_SLUG is: $CI_COMMIT_REF_SLUG"
+    - echo "Dir::Cache ${CI_PROJECT_DIR}/apt/;" > /etc/apt/apt.conf.d/99gitlab-cache
     - apt-get update
     - apt-get install -y --no-install-recommends
         at-spi2-core
@@ -179,6 +186,7 @@ deps-win64:
     - .cache/crossroad/
     - dnf_cache
   before_script:
+    - echo "CI_COMMIT_REF_SLUG is: $CI_COMMIT_REF_SLUG"
     - dnf install --assumeyes --setopt=cachedir=`pwd`/dnf_cache --verbose
         automake
         autoconf


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