2019-08-09 22:18:43 +08:00
|
|
|
image: salamandar/archlinux-gimp:latest
|
2019-08-21 19:54:38 +08:00
|
|
|
|
2019-07-29 07:11:44 +08:00
|
|
|
stages:
|
|
|
|
- babl
|
|
|
|
- gegl
|
|
|
|
- gimp
|
|
|
|
|
|
|
|
variables:
|
|
|
|
INSTALL_DIR: "_install"
|
2019-08-21 19:54:38 +08:00
|
|
|
INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
|
|
|
|
PACMAN_CACHE: "${CI_PROJECT_DIR}/_pacman_cache"
|
2019-07-29 07:11:44 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- _pacman_cache
|
2019-09-25 20:27:09 +08:00
|
|
|
- dnf_cache
|
|
|
|
- .cache/crossroad/
|
2019-07-29 07:11:44 +08:00
|
|
|
|
|
|
|
.babl-base:
|
|
|
|
stage: babl
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-08-21 19:54:38 +08:00
|
|
|
- "${INSTALL_DIR}"
|
2019-07-29 07:11:44 +08:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "5"
|
|
|
|
before_script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
|
|
|
- pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
|
2019-07-29 07:11:44 +08:00
|
|
|
git
|
|
|
|
base-devel
|
2019-08-08 20:15:36 +08:00
|
|
|
gobject-introspection
|
2019-07-29 07:11:44 +08:00
|
|
|
meson
|
|
|
|
lcms2
|
2019-08-21 19:54:38 +08:00
|
|
|
- git clone --depth="${GIT_DEPTH}" https://gitlab.gnome.org/GNOME/babl.git _babl
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
babl-git:
|
2019-07-29 07:11:44 +08:00
|
|
|
extends: .babl-base
|
|
|
|
script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- cd _babl
|
|
|
|
- meson -Dprefix="${INSTALL_PREFIX}" _build
|
2019-07-31 01:08:16 +08:00
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build install
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
# babl-min:
|
2019-07-29 07:11:44 +08:00
|
|
|
# extends: .babl-base
|
|
|
|
# script:
|
2019-08-21 19:54:38 +08:00
|
|
|
# - BABL_MIN_VERSION="$(grep babl meson.build | grep version
|
|
|
|
# | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sed 's/\./_/g')"
|
|
|
|
# - cd _babl
|
|
|
|
# - git fetch --no-tags origin "refs/tags/BABL_${BABL_MIN_VERSION}:refs/tags/MIN_VERSION"
|
2019-07-29 07:11:44 +08:00
|
|
|
# - git checkout MIN_VERSION
|
2019-08-21 19:54:38 +08:00
|
|
|
# - meson -Dprefix="${INSTALL_PREFIX}" _build
|
2019-07-29 07:11:44 +08:00
|
|
|
# - ninja -C _build
|
|
|
|
# - ninja -C _build install
|
|
|
|
|
|
|
|
.gegl-base:
|
|
|
|
stage: gegl
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-08-21 19:54:38 +08:00
|
|
|
- "${INSTALL_DIR}"
|
2019-07-29 07:11:44 +08:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "5"
|
|
|
|
before_script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
|
|
|
- pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
|
2019-07-29 07:11:44 +08:00
|
|
|
git
|
|
|
|
base-devel
|
|
|
|
meson
|
|
|
|
lcms2
|
|
|
|
base-devel
|
|
|
|
ffmpeg
|
2019-08-08 20:15:36 +08:00
|
|
|
gobject-introspection
|
2019-07-29 07:11:44 +08:00
|
|
|
graphviz
|
|
|
|
jasper
|
|
|
|
json-glib
|
|
|
|
lcms2
|
|
|
|
libgexiv2
|
|
|
|
libraw
|
|
|
|
librsvg
|
|
|
|
libspiro
|
|
|
|
libtiff
|
|
|
|
luajit
|
|
|
|
openexr
|
|
|
|
python
|
|
|
|
sdl2
|
|
|
|
suitesparse
|
2019-08-21 19:54:38 +08:00
|
|
|
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
gegl-git:
|
2019-07-29 07:11:44 +08:00
|
|
|
extends: .gegl-base
|
|
|
|
script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- cd _gegl
|
|
|
|
- meson --prefix="${INSTALL_PREFIX}" _build
|
2019-08-17 03:30:57 +08:00
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build install
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
# gegl-min:
|
|
|
|
# extends: .gegl-base
|
|
|
|
# script:
|
|
|
|
# - GEGL_MIN_VERSION="$(grep gegl meson.build | grep version
|
|
|
|
# | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sed 's/\./_/g')"
|
|
|
|
# - cd _gegl
|
|
|
|
# - git fetch --no-tags origin "refs/tags/GEGL_${GEGL_MIN_VERSION}:refs/tags/MIN_VERSION"
|
|
|
|
# - git checkout MIN_VERSION
|
|
|
|
# - meson -Dprefix="${INSTALL_PREFIX}" _build
|
|
|
|
# - ninja -C _build
|
|
|
|
# - ninja -C _build install
|
|
|
|
|
2019-07-29 07:11:44 +08:00
|
|
|
.gimp-base:
|
|
|
|
stage: gimp
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-08-21 19:54:38 +08:00
|
|
|
- "${INSTALL_DIR}"
|
2019-07-29 07:11:44 +08:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "5"
|
|
|
|
before_script:
|
2019-08-22 22:43:35 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
|
2019-08-21 19:54:38 +08:00
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
|
|
|
- pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
|
2019-07-29 07:11:44 +08:00
|
|
|
git
|
|
|
|
base-devel
|
|
|
|
appstream-glib
|
|
|
|
at-spi2-core
|
|
|
|
at-spi2-atk
|
|
|
|
dbus-glib
|
|
|
|
desktop-file-utils
|
|
|
|
ffmpeg
|
|
|
|
glib-networking
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
hicolor-icon-theme
|
|
|
|
jasper
|
|
|
|
lcms2
|
|
|
|
libexif
|
|
|
|
libgudev
|
|
|
|
libheif
|
|
|
|
libmng
|
|
|
|
libmypaint
|
|
|
|
librsvg
|
|
|
|
libwebp
|
|
|
|
libwmf
|
|
|
|
libxmu
|
|
|
|
libxpm
|
2019-08-25 03:16:46 +08:00
|
|
|
mypaint-brushes1
|
2019-07-29 07:11:44 +08:00
|
|
|
openexr
|
|
|
|
poppler-data
|
|
|
|
pygtk
|
|
|
|
alsa-lib
|
|
|
|
ghostscript
|
|
|
|
poppler-glib
|
|
|
|
gtk-doc
|
|
|
|
intltool
|
|
|
|
iso-codes
|
|
|
|
xorg-server-xvfb
|
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
.gimp-autotools:
|
2019-07-29 07:11:44 +08:00
|
|
|
extends: .gimp-base
|
|
|
|
script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- mkdir _build
|
2019-07-29 07:11:44 +08:00
|
|
|
- cd _build
|
2019-09-11 23:09:05 +08:00
|
|
|
- ../autogen.sh
|
2019-08-21 19:54:38 +08:00
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
--enable-debug
|
|
|
|
--with-python=force
|
|
|
|
--with-javascript=force
|
|
|
|
--with-lua=force
|
|
|
|
- make -j "$(nproc)"
|
|
|
|
# - make check
|
2019-07-29 07:11:44 +08:00
|
|
|
artifacts:
|
2019-08-21 19:54:38 +08:00
|
|
|
name: "app-tests-logs-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2019-07-29 07:11:44 +08:00
|
|
|
when: on_failure
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
2019-08-21 19:54:38 +08:00
|
|
|
- _build/app/tests/
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-08-09 22:18:43 +08:00
|
|
|
.gimp-meson:
|
|
|
|
extends: .gimp-base
|
|
|
|
script:
|
|
|
|
- meson _build
|
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
-Dpython=always
|
|
|
|
-Djavascript=always
|
|
|
|
-Dlua=always
|
|
|
|
- ninja -C _build
|
|
|
|
# - ninja test
|
|
|
|
artifacts:
|
|
|
|
name: "app-tests-logs-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: on_failure
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- _build/app/tests/
|
|
|
|
|
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
build-git-autotools:
|
|
|
|
extends: .gimp-autotools
|
2019-07-29 07:11:44 +08:00
|
|
|
dependencies:
|
2019-08-21 19:54:38 +08:00
|
|
|
- babl-git
|
|
|
|
- gegl-git
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-08-09 22:18:43 +08:00
|
|
|
build-git-meson:
|
|
|
|
extends: .gimp-meson
|
|
|
|
dependencies:
|
|
|
|
- babl-git
|
|
|
|
- gegl-git
|
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
# build-min-autotools:
|
|
|
|
# extends: .gimp-autotools
|
2019-07-29 07:11:44 +08:00
|
|
|
# dependencies:
|
2019-08-21 19:54:38 +08:00
|
|
|
# - babl-git
|
|
|
|
# - gegl-git
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-08-21 19:54:38 +08:00
|
|
|
# build-min-meson:
|
|
|
|
# extends: .gimp-meson
|
2019-07-29 07:11:44 +08:00
|
|
|
# dependencies:
|
2019-08-21 19:54:38 +08:00
|
|
|
# - babl-min
|
|
|
|
# - gegl-min
|
2019-09-25 20:27:09 +08:00
|
|
|
|
|
|
|
.gimp-x86_64-w64-mingw32-base:
|
|
|
|
image: fedora:30
|
|
|
|
stage: gimp
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- "${INSTALL_DIR}"
|
|
|
|
before_script:
|
|
|
|
- dnf install --assumeyes --setopt=cachedir=`pwd`/dnf_cache --verbose
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
meson
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
git
|
|
|
|
gcc
|
|
|
|
gcc-c++
|
|
|
|
gperf
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
libxslt
|
|
|
|
make
|
|
|
|
python2
|
|
|
|
mingw64-gcc
|
|
|
|
mingw64-gcc-c++
|
|
|
|
mingw64-binutils
|
|
|
|
cpio rpm
|
|
|
|
python3-docutils
|
|
|
|
python3-pip
|
|
|
|
python3-setuptools
|
|
|
|
shared-mime-info
|
|
|
|
which
|
|
|
|
libmount-devel
|
|
|
|
gdk-pixbuf2
|
|
|
|
gdk-pixbuf2-devel
|
|
|
|
glib2-devel
|
|
|
|
#- pip3 install wheel
|
|
|
|
#- pip3 install crossroad
|
|
|
|
- git clone git://git.tuxfamily.org/gitroot/crossroad/crossroad.git
|
|
|
|
- cd crossroad
|
|
|
|
- ./setup.py install
|
|
|
|
- cd ..
|
2019-10-01 03:00:25 +08:00
|
|
|
- gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
|
2019-09-25 20:27:09 +08:00
|
|
|
|
|
|
|
build-git-x86_64-w64-mingw32-meson:
|
|
|
|
extends: .gimp-x86_64-w64-mingw32-base
|
|
|
|
script:
|
|
|
|
- export SHELL
|
|
|
|
- crossroad w64 gimp --run="build/windows/crossbuild-gitlab-ci.sh"
|
|
|
|
artifacts:
|
|
|
|
name: "app-tests-logs-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: on_failure
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- _deps/
|
|
|
|
- _build/
|