mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
gitlab-ci, build/windows: Organize 'git' variables
This commit is contained in:
parent
5202935db7
commit
ad132ad0fa
5 changed files with 15 additions and 16 deletions
|
@ -62,6 +62,7 @@ stages:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: "1"
|
GIT_DEPTH: "1"
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
ARTIFACTS_SUFFIX: "-x64"
|
ARTIFACTS_SUFFIX: "-x64"
|
||||||
GIMP_PREFIX: "${CI_PROJECT_DIR}/_install${ARTIFACTS_SUFFIX}"
|
GIMP_PREFIX: "${CI_PROJECT_DIR}/_install${ARTIFACTS_SUFFIX}"
|
||||||
|
|
||||||
|
@ -248,7 +249,6 @@ deps-debian-gcc:
|
||||||
before_script:
|
before_script:
|
||||||
# Universal variables
|
# Universal variables
|
||||||
- !reference [.default, before_script]
|
- !reference [.default, before_script]
|
||||||
- git submodule update --init
|
|
||||||
- mkdir -p _build${ARTIFACTS_SUFFIX} && cd _build${ARTIFACTS_SUFFIX}
|
- mkdir -p _build${ARTIFACTS_SUFFIX} && cd _build${ARTIFACTS_SUFFIX}
|
||||||
after_script:
|
after_script:
|
||||||
- ccache --show-stats
|
- ccache --show-stats
|
||||||
|
@ -341,7 +341,6 @@ packaging-flatpak-x64:
|
||||||
- flatpak
|
- flatpak
|
||||||
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master'
|
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master'
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: normal
|
|
||||||
# Replace with your manifest path
|
# Replace with your manifest path
|
||||||
MANIFEST_PATH: "build/flatpak/org.gimp.GIMP-nightly.json"
|
MANIFEST_PATH: "build/flatpak/org.gimp.GIMP-nightly.json"
|
||||||
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$GIT_DEPTH" ]; then
|
||||||
|
export GIT_DEPTH=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# BASH ENV
|
# BASH ENV
|
||||||
if [[ -z "$CROSSROAD_PLATFORM" ]]; then
|
if [[ -z "$CROSSROAD_PLATFORM" ]]; then
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
wine \
|
wine \
|
||||||
wine64
|
wine64
|
||||||
git clone --depth=${GIT_DEPTH} https://gitlab.freedesktop.org/crossroad/crossroad.git
|
git clone --depth $GIT_DEPTH https://gitlab.freedesktop.org/crossroad/crossroad.git
|
||||||
cd crossroad
|
cd crossroad
|
||||||
./setup.py install --prefix=`pwd`/../.local
|
./setup.py install --prefix=`pwd`/../.local
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -29,8 +34,8 @@ fi
|
||||||
|
|
||||||
## Clone babl and GEGL (follow master branch)
|
## Clone babl and GEGL (follow master branch)
|
||||||
mkdir _deps && cd _deps
|
mkdir _deps && cd _deps
|
||||||
git clone --depth 1 https://gitlab.gnome.org/GNOME/babl.git _babl
|
git clone --depth $GIT_DEPTH https://gitlab.gnome.org/GNOME/babl.git _babl
|
||||||
git clone --depth 1 https://gitlab.gnome.org/GNOME/gegl.git _gegl
|
git clone --depth $GIT_DEPTH https://gitlab.gnome.org/GNOME/gegl.git _gegl
|
||||||
|
|
||||||
## Build babl and GEGL
|
## Build babl and GEGL
|
||||||
mkdir _babl/_build${ARTIFACTS_SUFFIX}-cross/ && cd _babl/_build${ARTIFACTS_SUFFIX}-cross/
|
mkdir _babl/_build${ARTIFACTS_SUFFIX}-cross/ && cd _babl/_build${ARTIFACTS_SUFFIX}-cross/
|
||||||
|
|
|
@ -24,7 +24,7 @@ else
|
||||||
DEPS_DIR=$(dirname $PWD)
|
DEPS_DIR=$(dirname $PWD)
|
||||||
cd $DEPS_DIR
|
cd $DEPS_DIR
|
||||||
fi
|
fi
|
||||||
|
export GIT_DEPTH=1
|
||||||
pacman --noconfirm -Suy
|
pacman --noconfirm -Suy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -61,8 +61,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# Clone babl and GEGL (follow master branch)
|
# Clone babl and GEGL (follow master branch)
|
||||||
export GIT_DEPTH=1
|
|
||||||
|
|
||||||
clone_or_pull ()
|
clone_or_pull ()
|
||||||
{
|
{
|
||||||
repo="https://gitlab.gnome.org/GNOME/${1}.git"
|
repo="https://gitlab.gnome.org/GNOME/${1}.git"
|
||||||
|
@ -76,7 +74,7 @@ clone_or_pull ()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "_${1}" ]; then
|
if [ ! -d "_${1}" ]; then
|
||||||
git clone $git_options --depth=${GIT_DEPTH} $repo _${1} || exit 1
|
git clone $git_options --depth $GIT_DEPTH $repo _${1} || exit 1
|
||||||
else
|
else
|
||||||
cd _${1} && git pull && cd ..
|
cd _${1} && git pull && cd ..
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -17,8 +17,9 @@ echo export GI_TYPELIB_PATH="${GIMP_PREFIX}/${LIB_DIR}/${LIB_SUBDIR}girepository
|
||||||
echo "${GIMP_PREFIX}/bin/gimp-console-$GIMP_APP_VERSION \"\$@\"" >> bin/gimp-console-$GIMP_APP_VERSION
|
echo "${GIMP_PREFIX}/bin/gimp-console-$GIMP_APP_VERSION \"\$@\"" >> bin/gimp-console-$GIMP_APP_VERSION
|
||||||
chmod u+x bin/gimp-console-$GIMP_APP_VERSION
|
chmod u+x bin/gimp-console-$GIMP_APP_VERSION
|
||||||
|
|
||||||
|
if [ -z "$GIT_SUBMODULE_STRATEGY" ]; then
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
fi
|
||||||
|
|
||||||
# CROSSROAD ENV
|
# CROSSROAD ENV
|
||||||
else
|
else
|
||||||
|
|
|
@ -29,9 +29,8 @@ else
|
||||||
echo "To run this script locally, please do it from to the gimp git folder"
|
echo "To run this script locally, please do it from to the gimp git folder"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
git submodule update --init
|
||||||
pacman --noconfirm -Suy
|
pacman --noconfirm -Suy
|
||||||
|
|
||||||
export MESON_OPTIONS="-Drelocatable-bundle=no"
|
export MESON_OPTIONS="-Drelocatable-bundle=no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -61,9 +60,6 @@ export XDG_DATA_DIRS="${GIMP_PREFIX}/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA
|
||||||
export GI_TYPELIB_PATH="${GIMP_PREFIX}/${LIB_DIR}/${LIB_SUBDIR}girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
|
export GI_TYPELIB_PATH="${GIMP_PREFIX}/${LIB_DIR}/${LIB_SUBDIR}girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
|
||||||
# End of universal variables
|
# End of universal variables
|
||||||
|
|
||||||
|
|
||||||
git submodule update --init
|
|
||||||
|
|
||||||
if [ ! -f "_build${ARTIFACTS_SUFFIX}/build.ninja" ]; then
|
if [ ! -f "_build${ARTIFACTS_SUFFIX}/build.ninja" ]; then
|
||||||
mkdir -p "_build${ARTIFACTS_SUFFIX}" && cd "_build${ARTIFACTS_SUFFIX}"
|
mkdir -p "_build${ARTIFACTS_SUFFIX}" && cd "_build${ARTIFACTS_SUFFIX}"
|
||||||
# We disable javascript as we are not able for the time being to add a
|
# We disable javascript as we are not able for the time being to add a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue