Commit f2a52e8a authored by Ján Veselý's avatar Ján Veselý Committed by Øyvind "pippin" Kolås

gitlab-ci: Add CI script

Tests build against minimum babl and babl-git (both autotools and meson
built).
Tests default and enable-all builds.
Signed-off-by: Ján Veselý's avatarJan Vesely <jano.vesely@gmail.com>
parent 8f09d530
Pipeline #67903 passed with stages
in 16 minutes and 6 seconds
stages:
- babl
- gegl
variables:
BABL_DIR: "_babl_install"
BABL_PREFIX: "$CI_PROJECT_DIR/$BABL_DIR"
cache:
paths:
- _pacman_cache
image: archlinux/base:latest
.babl-base:
stage: babl
artifacts:
paths:
- $BABL_DIR
variables:
GIT_DEPTH: "5"
before_script:
- pacman -Syu --noconfirm --needed --cachedir `pwd`/_pacman_cache git base-devel meson lcms2
- git clone https://gitlab.gnome.org/GNOME/babl.git _babl
- cd _babl
- mkdir _build
babl-git-autotools:
extends: .babl-base
script:
- cd _build
- ../autogen.sh --prefix="$BABL_PREFIX"
- make
- make install
babl-git-meson:
extends: .babl-base
script:
- meson -Dprefix="$BABL_PREFIX" _build
- ninja -C _build
- ninja -C _build install
babl-min-autotools:
extends: .babl-base
script:
- grep babl_required_version ../configure.ac | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sed 's/\./_/g' > .babl_min_version
- git checkout "BABL_`cat .babl_min_version`"
- cd _build
- ../autogen.sh --prefix="$BABL_PREFIX"
- make
- make install
babl-min-meson:
extends: .babl-base
script:
- grep babl_required_version ../configure.ac | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sed 's/\./_/g' > .babl_min_version
- git checkout "BABL_`cat .babl_min_version`"
- meson -Dprefix="$BABL_PREFIX" _build
- ninja -C _build
- ninja -C _build install
.build-gegl:
stage: gegl
variables:
GIT_DEPTH: "15"
before_script:
- pacman -Syu --noconfirm --needed --cachedir `pwd`/_pacman_cache
base-devel
ffmpeg
graphviz
jasper
json-glib
lcms2
libgexiv2
libraw
librsvg
libspiro
libtiff
luajit
openexr
python
sdl2
suitesparse
script:
- mkdir _build
- cd _build
- PKG_CONFIG_PATH=$BABL_PREFIX/lib/pkgconfig ../autogen.sh $CONFIG_OPTIONS
- LD_LIBRARY_PATH="$BABL_PREFIX/lib:$LD_LIBRARY_PATH" make
- LD_LIBRARY_PATH="$BABL_PREFIX/lib:$LD_LIBRARY_PATH" make check
.build-default:
extends: .build-gegl
variables:
CONFIG_OPTIONS: ""
.build-all:
extends: .build-gegl
variables:
CONFIG_OPTIONS: "--enable-debug --enable-mmx --enable-sse --enable-profile --enable-docs"
build-default-git-autotools:
extends: .build-default
dependencies:
- babl-git-autotools
build-default-git-meson:
extends: .build-default
dependencies:
- babl-git-meson
build-default-min-autotools:
extends: .build-default
dependencies:
- babl-min-autotools
build-default-min-meson:
extends: .build-default
dependencies:
- babl-min-meson
build-all-git-autotools:
extends: .build-all
dependencies:
- babl-git-autotools
build-all-git-meson:
extends: .build-all
dependencies:
- babl-git-meson
build-all-min-autotools:
extends: .build-all
dependencies:
- babl-min-autotools
build-all-min-meson:
extends: .build-all
dependencies:
- babl-min-meson
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment