gimp/.gitlab-ci.yml

278 lines
6.3 KiB
YAML
Raw Normal View History

2019-08-09 22:18:43 +08:00
image: salamandar/archlinux-gimp:latest
2019-08-21 19:54:38 +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"
cache:
paths:
- _pacman_cache
- dnf_cache
- .cache/crossroad/
.babl-base:
stage: babl
artifacts:
paths:
2019-08-21 19:54:38 +08:00
- "${INSTALL_DIR}"
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}"
git
base-devel
gobject-introspection
meson
lcms2
2019-08-21 19:54:38 +08:00
- git clone --depth="${GIT_DEPTH}" https://gitlab.gnome.org/GNOME/babl.git _babl
2019-08-21 19:54:38 +08:00
babl-git:
extends: .babl-base
script:
2019-08-21 19:54:38 +08:00
- cd _babl
- meson -Dprefix="${INSTALL_PREFIX}" _build
- ninja -C _build
- ninja -C _build install
2019-08-21 19:54:38 +08:00
# babl-min:
# 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"
# - git checkout MIN_VERSION
2019-08-21 19:54:38 +08:00
# - meson -Dprefix="${INSTALL_PREFIX}" _build
# - ninja -C _build
# - ninja -C _build install
.gegl-base:
stage: gegl
artifacts:
paths:
2019-08-21 19:54:38 +08:00
- "${INSTALL_DIR}"
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}"
git
base-devel
meson
lcms2
base-devel
ffmpeg
gobject-introspection
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-08-21 19:54:38 +08:00
gegl-git:
extends: .gegl-base
script:
2019-08-21 19:54:38 +08:00
- cd _gegl
- meson --prefix="${INSTALL_PREFIX}" _build
- ninja -C _build
- ninja -C _build install
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
.gimp-base:
stage: gimp
artifacts:
paths:
2019-08-21 19:54:38 +08:00
- "${INSTALL_DIR}"
variables:
GIT_DEPTH: "5"
before_script:
- 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}"
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
mypaint-brushes1
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:
extends: .gimp-base
script:
2019-08-21 19:54:38 +08:00
- mkdir _build
- cd _build
- ../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
artifacts:
2019-08-21 19:54:38 +08:00
name: "app-tests-logs-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: on_failure
expire_in: 1 week
paths:
2019-08-21 19:54:38 +08:00
- _build/app/tests/
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
dependencies:
2019-08-21 19:54:38 +08:00
- babl-git
- gegl-git
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
# dependencies:
2019-08-21 19:54:38 +08:00
# - babl-git
# - gegl-git
2019-08-21 19:54:38 +08:00
# build-min-meson:
# extends: .gimp-meson
# dependencies:
2019-08-21 19:54:38 +08:00
# - babl-min
# - gegl-min
.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 ..
- gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
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/