2020-01-02 02:57:06 +08:00
|
|
|
image: debian:testing
|
2019-08-21 19:54:38 +08:00
|
|
|
|
2019-07-29 07:11:44 +08:00
|
|
|
stages:
|
2019-10-02 03:36:19 +08:00
|
|
|
- dependencies
|
2019-07-29 07:11:44 +08:00
|
|
|
- gimp
|
|
|
|
|
|
|
|
variables:
|
2019-10-02 02:36:09 +08:00
|
|
|
GIT_DEPTH: "1"
|
2019-07-29 07:11:44 +08:00
|
|
|
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
|
|
|
|
2019-11-25 02:41:06 +08:00
|
|
|
## GNU/Linux 64-bit CIs ##
|
|
|
|
|
2020-01-02 02:57:06 +08:00
|
|
|
deps-debian/testing:
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: dependencies
|
|
|
|
cache:
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-10-02 03:36:19 +08:00
|
|
|
- _pacman_cache
|
2019-07-29 07:11:44 +08:00
|
|
|
artifacts:
|
2019-10-02 00:36:07 +08:00
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-08-21 19:54:38 +08:00
|
|
|
- "${INSTALL_DIR}"
|
2019-10-02 03:36:19 +08:00
|
|
|
- _babl/_build
|
2019-10-02 00:36:07 +08:00
|
|
|
- _gegl/_build
|
2019-07-29 07:11:44 +08:00
|
|
|
before_script:
|
2020-01-02 02:57:06 +08:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y --no-install-recommends
|
|
|
|
build-essential
|
2019-07-29 07:11:44 +08:00
|
|
|
git
|
|
|
|
ffmpeg
|
2020-01-02 02:57:06 +08:00
|
|
|
graphviz-dev
|
2019-08-08 20:15:36 +08:00
|
|
|
gobject-introspection
|
2020-01-02 02:57:06 +08:00
|
|
|
libjson-glib-dev
|
|
|
|
libgexiv2-dev
|
|
|
|
libgirepository1.0-dev
|
|
|
|
liblcms2-dev
|
|
|
|
libopenexr-dev
|
|
|
|
libraw-dev
|
|
|
|
librsvg2-dev
|
|
|
|
libspiro-dev
|
|
|
|
libsuitesparse-dev
|
|
|
|
libtiff5-dev
|
2019-07-29 07:11:44 +08:00
|
|
|
luajit
|
2020-01-02 02:57:06 +08:00
|
|
|
meson
|
|
|
|
python3
|
|
|
|
- apt-get install -y --reinstall ca-certificates
|
|
|
|
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git _babl
|
2019-08-21 19:54:38 +08:00
|
|
|
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
|
2020-01-02 02:57:06 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
|
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`:$LD_LIBRARY_PATH"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
2019-07-29 07:11:44 +08:00
|
|
|
script:
|
2019-10-02 03:36:19 +08:00
|
|
|
- cd _babl
|
|
|
|
- meson -Dprefix="${INSTALL_PREFIX}" _build
|
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build install
|
|
|
|
- cd ../_gegl
|
2019-08-21 19:54:38 +08:00
|
|
|
- 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
|
|
|
|
2020-01-02 02:57:06 +08:00
|
|
|
.gimp-debian/testing-base:
|
2019-07-29 07:11:44 +08:00
|
|
|
stage: gimp
|
2019-10-02 03:36:19 +08:00
|
|
|
dependencies:
|
2020-01-02 02:57:06 +08:00
|
|
|
- deps-debian/testing
|
2019-07-29 07:11:44 +08:00
|
|
|
artifacts:
|
2019-10-02 00:36:07 +08:00
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
name: "app-build-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-10-02 00:36:07 +08:00
|
|
|
- _build
|
|
|
|
#- "${INSTALL_DIR}"
|
2019-07-29 07:11:44 +08:00
|
|
|
before_script:
|
2020-01-02 02:57:06 +08:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y --no-install-recommends
|
2019-07-29 07:11:44 +08:00
|
|
|
at-spi2-core
|
2020-01-02 02:57:06 +08:00
|
|
|
build-essential
|
2019-07-29 07:11:44 +08:00
|
|
|
desktop-file-utils
|
|
|
|
ffmpeg
|
|
|
|
hicolor-icon-theme
|
|
|
|
ghostscript
|
2020-01-02 02:57:06 +08:00
|
|
|
git
|
|
|
|
glib-networking
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc-tools
|
2019-07-29 07:11:44 +08:00
|
|
|
intltool
|
|
|
|
iso-codes
|
2020-01-02 02:57:06 +08:00
|
|
|
libappstream-glib-dev
|
|
|
|
libbz2-dev
|
|
|
|
libdbus-glib-1-dev
|
|
|
|
libexif-dev
|
|
|
|
libgexiv2-dev
|
|
|
|
libgirepository1.0-dev
|
|
|
|
libgtk-3-bin
|
|
|
|
libgtk-3-dev
|
|
|
|
libgudev-1.0-dev
|
|
|
|
libjson-glib-dev
|
|
|
|
liblcms2-dev
|
|
|
|
liblzma-dev
|
|
|
|
libmng-dev
|
|
|
|
libmypaint-dev
|
|
|
|
libopenexr-dev
|
|
|
|
libpoppler-glib-dev
|
|
|
|
librsvg2-dev
|
|
|
|
libtiff-dev
|
|
|
|
libtool
|
|
|
|
libwebp-dev
|
|
|
|
libwmf-dev
|
|
|
|
libxmu-dev
|
|
|
|
libxpm-dev
|
|
|
|
meson
|
|
|
|
mypaint-brushes
|
|
|
|
poppler-data
|
|
|
|
xvfb
|
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
|
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
|
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/share/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`:$LD_LIBRARY_PATH"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
|
|
|
- export PATH="${INSTALL_PREFIX}/bin:$PATH"
|
|
|
|
needs: ["deps-debian/testing"]
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2020-01-02 02:57:06 +08:00
|
|
|
gimp-debian/testing-autotools:
|
|
|
|
extends: .gimp-debian/testing-base
|
2019-07-29 07:11:44 +08:00
|
|
|
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
|
|
|
|
2020-01-02 02:57:06 +08:00
|
|
|
gimp-debian/testing-meson:
|
|
|
|
extends: .gimp-debian/testing-base
|
2019-08-09 22:18:43 +08:00
|
|
|
script:
|
|
|
|
- meson _build
|
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
-Dpython=always
|
|
|
|
-Djavascript=always
|
|
|
|
-Dlua=always
|
|
|
|
- ninja -C _build
|
2020-01-04 05:55:09 +08:00
|
|
|
- ninja -C _build test
|
2019-08-09 22:18:43 +08:00
|
|
|
|
2020-01-03 07:19:10 +08:00
|
|
|
gimp-debian/testing-clang:
|
|
|
|
extends: .gimp-debian/testing-base
|
|
|
|
variables:
|
|
|
|
CC: "clang"
|
|
|
|
CXX: "clang++"
|
|
|
|
script:
|
|
|
|
- apt-get install -y --no-install-recommends
|
|
|
|
clang
|
|
|
|
- meson _build
|
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
-Dpython=always
|
|
|
|
-Djavascript=always
|
|
|
|
-Dlua=always
|
|
|
|
- ninja -C _build
|
2020-01-04 05:55:09 +08:00
|
|
|
- ninja -C _build test
|
2020-01-03 07:19:10 +08:00
|
|
|
|
2019-11-25 02:41:06 +08:00
|
|
|
## WINDOWS 64-bit CI ##
|
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
deps-win64:
|
2019-11-24 22:55:51 +08:00
|
|
|
image: fedora:31
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: dependencies
|
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
|
|
|
- dnf_cache
|
2019-09-25 20:27:09 +08:00
|
|
|
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
|
2019-10-02 03:36:19 +08:00
|
|
|
- ./setup.py install --prefix=`pwd`/../.local
|
2019-09-25 20:27:09 +08:00
|
|
|
- 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-10-02 03:36:19 +08:00
|
|
|
script:
|
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
2019-10-25 04:20:20 +08:00
|
|
|
- crossroad w64 gimp --run="build/windows/crossbuild-gitlab-ci/build-deps.sh"
|
2019-10-02 03:36:19 +08:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- .local/
|
|
|
|
- _deps/
|
2019-09-25 20:27:09 +08:00
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
gimp-win64:
|
2019-11-24 22:55:51 +08:00
|
|
|
image: fedora:31
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: gimp
|
|
|
|
dependencies:
|
2019-11-26 02:16:40 +08:00
|
|
|
- deps-win64
|
2019-10-01 19:44:42 +08:00
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
2019-10-02 03:36:19 +08:00
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
2019-10-01 19:44:42 +08:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
|
|
|
- dnf_cache
|
2019-10-02 03:36:19 +08:00
|
|
|
before_script:
|
|
|
|
- dnf install --assumeyes --setopt=cachedir=`pwd`/dnf_cache --verbose
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
meson
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
gcc
|
|
|
|
gcc-c++
|
|
|
|
gperf
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
libxslt
|
|
|
|
make
|
2019-11-24 22:55:51 +08:00
|
|
|
python3
|
2019-10-02 03:36:19 +08:00
|
|
|
mingw64-gcc
|
|
|
|
mingw64-gcc-c++
|
|
|
|
mingw64-binutils
|
|
|
|
cpio rpm
|
|
|
|
shared-mime-info
|
|
|
|
which
|
|
|
|
libmount-devel
|
|
|
|
gdk-pixbuf2
|
|
|
|
gdk-pixbuf2-devel
|
|
|
|
glib2-devel
|
2019-09-25 20:27:09 +08:00
|
|
|
script:
|
2019-10-02 03:36:19 +08:00
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
|
|
|
- mkdir _build && cd _build
|
|
|
|
- echo 'crossroad meson ..
|
|
|
|
-Dwmf=disabled -Dgtk-doc=false
|
|
|
|
-Dpython=always -Dlua=always
|
2019-10-26 19:00:46 +08:00
|
|
|
-Djavascript=always && ninja install &&
|
2019-10-25 04:47:56 +08:00
|
|
|
cp ../build/windows/crossbuild-gitlab-ci/gimp-wrapper.cmd $CROSSROAD_PREFIX/bin/ &&
|
|
|
|
cp -fr $CROSSROAD_PREFIX/ ../gimp-prefix/
|
2019-10-25 04:20:20 +08:00
|
|
|
' |
|
2019-10-02 03:36:19 +08:00
|
|
|
crossroad w64 gimp --run="-"
|
2019-11-26 02:16:40 +08:00
|
|
|
needs: ["deps-win64"]
|
2019-09-25 20:27:09 +08:00
|
|
|
artifacts:
|
2019-10-02 03:36:19 +08:00
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2019-10-02 00:36:07 +08:00
|
|
|
when: always
|
2019-09-25 20:27:09 +08:00
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- _build/
|
2019-10-25 04:47:56 +08:00
|
|
|
- gimp-prefix/
|
2019-11-25 02:41:06 +08:00
|
|
|
|
|
|
|
## WINDOWS 32-bit CI ##
|
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
deps-win32:
|
2019-11-25 02:41:06 +08:00
|
|
|
image: fedora:31
|
|
|
|
stage: dependencies
|
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
|
|
|
- dnf_cache
|
|
|
|
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
|
|
|
|
mingw32-gcc
|
|
|
|
mingw32-gcc-c++
|
|
|
|
mingw32-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 --prefix=`pwd`/../.local
|
|
|
|
- cd ..
|
|
|
|
- gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
|
|
|
|
script:
|
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
|
|
|
- crossroad w32 gimp --run="build/windows/crossbuild-gitlab-ci/build-deps.sh"
|
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- .local/
|
|
|
|
- _deps/
|
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
gimp-win32:
|
2019-11-25 02:41:06 +08:00
|
|
|
image: fedora:31
|
|
|
|
stage: gimp
|
|
|
|
dependencies:
|
2019-11-26 02:16:40 +08:00
|
|
|
- deps-win32
|
2019-11-25 02:41:06 +08:00
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
|
|
|
- dnf_cache
|
|
|
|
before_script:
|
|
|
|
- dnf install --assumeyes --setopt=cachedir=`pwd`/dnf_cache --verbose
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
meson
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
gcc
|
|
|
|
gcc-c++
|
|
|
|
gperf
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
libxslt
|
|
|
|
make
|
|
|
|
python2
|
|
|
|
python3
|
|
|
|
mingw32-gcc
|
|
|
|
mingw32-gcc-c++
|
|
|
|
mingw32-binutils
|
|
|
|
cpio rpm
|
|
|
|
shared-mime-info
|
|
|
|
which
|
|
|
|
libmount-devel
|
|
|
|
gdk-pixbuf2
|
|
|
|
gdk-pixbuf2-devel
|
|
|
|
glib2-devel
|
|
|
|
script:
|
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
|
|
|
- mkdir _build && cd _build
|
|
|
|
- echo 'crossroad meson ..
|
|
|
|
-Dwmf=disabled -Dgtk-doc=false
|
|
|
|
-Dpython=always -Dlua=always
|
|
|
|
-Djavascript=always && ninja install &&
|
|
|
|
cp ../build/windows/crossbuild-gitlab-ci/gimp-wrapper.cmd $CROSSROAD_PREFIX/bin/ &&
|
|
|
|
cp -fr $CROSSROAD_PREFIX/ ../gimp-prefix/
|
|
|
|
' |
|
|
|
|
crossroad w32 gimp --run="-"
|
2019-11-26 02:16:40 +08:00
|
|
|
needs: ["deps-win32"]
|
2019-11-25 02:41:06 +08:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- _build/
|
|
|
|
- gimp-prefix/
|