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.
This commit is contained in:
Jehan 2019-10-01 20:36:09 +02:00
parent 5c7f1ce571
commit aa611bea84
1 changed files with 1 additions and 6 deletions

View File

@ -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}"