[gimp/wip/Jehan/more-CI-build: 12/13] gitlab-ci: set GIT_DEPTH to 1.



commit ca7458cda2e5f032966eacf39387e02ebb2a5731
Author: Jehan <jehan girinstud io>
Date:   Tue Oct 1 20:36:09 2019 +0200

    gitlab-ci: set GIT_DEPTH to 1.
    
    We don't need to pull 5 commits of history. Only the HEAD of the
    selected branch is needed.
    Also define it globally rather than re-defining it in every job to the
    same value.

 .gitlab-ci.yml | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 851cb1e1cc..b9b944ff3a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,7 @@ stages:
   - gimp
 
 variables:
+  GIT_DEPTH: "1"
   INSTALL_DIR: "_install"
   INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
   PACMAN_CACHE:   "${CI_PROJECT_DIR}/_pacman_cache"
@@ -22,8 +23,6 @@ cache:
     paths:
     - "${INSTALL_DIR}"
     - _babl/_build
-  variables:
-    GIT_DEPTH: "5"
   before_script:
     - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
     - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
@@ -64,8 +63,6 @@ babl-git:
     paths:
     - "${INSTALL_DIR}"
     - _gegl/_build
-  variables:
-    GIT_DEPTH: "5"
   before_script:
     - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
     - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
@@ -123,8 +120,6 @@ gegl-git:
     paths:
     - _build
     #- "${INSTALL_DIR}"
-  variables:
-    GIT_DEPTH: "5"
   before_script:
     - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
     - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"


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