7 BABL_DIR: "_babl_install"
8 BABL_PREFIX: "$CI_PROJECT_DIR/$BABL_DIR"
9 CCACHE_DIR: "$CI_PROJECT_DIR/.ccache"
16 image: $CI_REGISTRY_IMAGE:ci-latest
24 name: gcr.io/kaniko-project/executor:debug
27 - mkdir -p /kaniko/.docker
28 - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
29 - echo "FROM archlinux:base-20210214.0.15477" > Dockerfile
30 - echo "RUN pacman -Sy --noconfirm archlinux-keyring && pacman -Syu --noconfirm --ignore glibc --needed git base-devel ccache meson lcms2 gobject-introspection vala pacman-contrib && pacman -Scc " >> Dockerfile
32 - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:ci-latest --cache=true --cache-ttl=120h
41 CCACHE_MAXSIZE: "32Mi"
43 - pacman -Sy --noconfirm archlinux-keyring
44 - pacman -Syu --ignore glibc --noconfirm --needed git base-devel ccache meson lcms2 gobject-introspection vala
45 - git clone --depth=$GIT_DEPTH https://gitlab.gnome.org/GNOME/babl.git _babl
54 - meson -Dprefix="$BABL_PREFIX" _build
56 - ninja -C _build install
62 # - grep babl ../meson.build | grep ">=" | grep -o '[0-9]*\.[0-9]*\.[0-9]*' | sed 's/\./_/g' > .babl_min_version
63 # - if [ x$(( $(cut .babl_min_version -f 3 -d _) % 2)) = x1 ] ; then touch .use_master ; fi
64 # - test -e .use_master && git fetch
65 # - test -e .use_master && git checkout master
66 # - test -e .use_master || git fetch --no-tags origin "refs/tags/BABL_`cat .babl_min_version`:refs/tags/MIN_VERSION"
67 # - test -e .use_master || git checkout MIN_VERSION
68 # - meson -Dprefix="$BABL_PREFIX" _build
70 # - ninja -C _build install
79 - pacman -Sy --noconfirm archlinux-keyring
80 - pacman -Syu --ignore glibc --noconfirm --needed
81 base-devel ccache meson
85 gobject-introspection-runtime
109 CCACHE_MAXSIZE: "128Mi"
111 # Add babl location to XDG_DATA_DIRS. .gir files are located there.
112 # Add babl location to GI_TYPELIB_PATH. Required for python tests.
113 # Add /usr/local/share:/usr/share for vapigen.
114 - export XDG_DATA_DIRS="$XDG_DATA_DIRS:$BABL_PREFIX/share:/usr/local/share/:/usr/share/"
115 - export GI_TYPELIB_PATH="$BABL_PREFIX/lib/girepository-1.0:$GI_TYPELIB_PATH"
116 - export LD_LIBRARY_PATH="$BABL_PREFIX/lib:$LD_LIBRARY_PATH"
117 - meson -Dbuildtype=$BUILD_TYPE -Dpkg_config_path=$BABL_PREFIX/lib/pkgconfig $CONFIG_OPTIONS _build
120 - meson test -C _build --print-errorlogs
125 BUILD_TYPE: "release"
131 BUILD_TYPE: "release"
132 CONFIG_OPTIONS: "-Dworkshop=true -Ddocs=true -Dintrospection=true"
137 BUILD_TYPE: "debugoptimized"
140 # extends: .build-default
143 # needs: ["babl-min"]
145 fullconfig-master-babl:
149 needs: ["babl-master"]
151 debug-fullconfig-master-babl:
152 extends: .build-all-debug
155 needs: ["babl-master"]