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:
parent
03a8f1dd75
commit
5c0484c3e6
@ -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
|
||||
|
@ -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
|
||||
|
28
.gitlab-ci/downstream-lxml.sh
Normal file
28
.gitlab-ci/downstream-lxml.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user