1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-19 14:50:07 +03:00

gitlab-ci: Add downstream job for lxml

This commit is contained in:
Nick Wellnhofer 2025-03-11 19:18:07 +01:00
parent 03a8f1dd75
commit 5c0484c3e6
3 changed files with 37 additions and 0 deletions

View File

@ -311,6 +311,11 @@ pages:
only:
- master@GNOME/libxml2
downstream-lxml:
image: registry.gitlab.gnome.org/gnome/libxml2
script:
- sh .gitlab-ci/downstream-lxml.sh
downstream-nokogiri:
# owner: @flavorjones
image: ghcr.io/sparklemotion/nokogiri-test:upstream-libxml

View File

@ -42,3 +42,7 @@ RUN apt-get remove -y libxml2-dev
# PHP
RUN apt-get install -y --no-install-recommends \
bison re2c libsqlite3-dev
# lxml
RUN apt-get install -y --no-install-recommends \
cython3

View File

@ -0,0 +1,28 @@
#!/bin/sh
set -e
srcdir=$(pwd)
mkdir -p install
installdir="$srcdir/install"
export PKG_CONFIG_PATH="$installdir/lib/pkgconfig"
sh autogen.sh "--prefix=$installdir" --with-http --with-zlib --without-python
make -j$(nproc)
make install
git clone --depth 1 https://gitlab.gnome.org/GNOME/libxslt.git
cd libxslt
sh autogen.sh \
"--prefix=$installdir" \
"--with-libxml-prefix=$installdir" \
--without-python
make -j$(nproc)
make install
cd ..
git clone --depth 1 https://github.com/lxml/lxml.git
cd lxml
make
LD_LIBRARY_PATH="$installdir/lib" make test